feat: optimize exists to check multiple keys in one call (#40)

* closes #32
This commit is contained in:
2024-10-07 10:07:11 +03:00
committed by GitHub
parent fd59d286f5
commit f1086fcdc1
4 changed files with 13 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ type (
Cache interface {
Add(context.Context, string) error
Remove(context.Context, string) error
Exists(context.Context, string) (bool, error)
Exists(context.Context, ...string) (bool, error)
Size(context.Context) (int64, error)
}