diff options
author | Valery Piashchynski <[email protected]> | 2021-06-24 17:40:49 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-24 17:40:49 +0300 |
commit | e9249c7896331bab97a18a7ee0db17803fdd31fb (patch) | |
tree | 99512001f757eb88614acb9b20dada3200008a5d /plugins/kv/interface.go | |
parent | ce53a8e149b76f15e8a5dd88ac3b953798d57e8b (diff) | |
parent | 60001dbe15b5ff0fec32239ad18b3d308a4150b5 (diff) |
#736 feat(kv): `clear` RPC method which completely cleans storagev2.3.1-beta.6
#736 feat(kv): `clear` RPC method which completely cleans storage
Diffstat (limited to 'plugins/kv/interface.go')
-rw-r--r-- | plugins/kv/interface.go | 5 |
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 } |