summaryrefslogtreecommitdiff
path: root/plugins/kv/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-24 15:31:15 +0300
committerValery Piashchynski <[email protected]>2021-06-24 15:31:15 +0300
commitfdff0ffe41b45d0e919eccc683104987898a4faf (patch)
tree79b242b1af7d283eedfb0ac124e48c5fa47ef461 /plugins/kv/interface.go
parentce53a8e149b76f15e8a5dd88ac3b953798d57e8b (diff)
- Add Clear method to the storages
Signed-off-by: Valery Piashchynski <[email protected]>
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
}