summaryrefslogtreecommitdiff
path: root/plugins/kv/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kv/interface.go')
-rw-r--r--plugins/kv/interface.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/kv/interface.go b/plugins/kv/interface.go
index ffdbbe62..5736a6a7 100644
--- a/plugins/kv/interface.go
+++ b/plugins/kv/interface.go
@@ -22,9 +22,12 @@ type Storage interface {
MExpire(items ...*kvv1.Item) error
// TTL return the rest time to live for provided keys
- // Not supported for the memcached and boltdb
+ // Not supported for the memcached
TTL(keys ...string) (map[string]string, error)
+ // Clear clean the entire storage
+ Clear() error
+
// Delete one or multiple keys.
Delete(keys ...string) error
}