mirror of
https://github.com/grassrootseconomics/eth-tracker.git
synced 2026-05-18 02:35:20 +02:00
feat: optimize exists to check multiple keys in one call (#40)
* closes #32
This commit is contained in:
2
internal/cache/cache.go
vendored
2
internal/cache/cache.go
vendored
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user