diff options
author | Valery Piashchynski <[email protected]> | 2021-06-09 20:26:18 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-09 20:26:18 +0300 |
commit | b99bfbe21a0f44b1a16b9110d779719fc637127c (patch) | |
tree | 3aabdb96c86a59325d816ad64cabc967ef2c8f10 /plugins/kv/interface.go | |
parent | 8fdf05d4f360a9f6344141b273eab9d6859470e0 (diff) | |
parent | 7665167623147403d575b7e2cf125073cbe6584d (diff) |
#715 feat(protocol): use protobuf for the `kv` and `websockets` RPC callsv2.3.0-beta.3
#715 feat(protocol): use protobuf for the `kv` and `websockets` RPC calls
Diffstat (limited to 'plugins/kv/interface.go')
-rw-r--r-- | plugins/kv/interface.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/kv/interface.go b/plugins/kv/interface.go index 7841f9a2..744c6b51 100644 --- a/plugins/kv/interface.go +++ b/plugins/kv/interface.go @@ -12,7 +12,7 @@ type Storage interface { // MGet loads content of multiple values // Returns the map with existing keys and associated values - MGet(keys ...string) (map[string]interface{}, error) + MGet(keys ...string) (map[string][]byte, error) // Set used to upload item to KV with TTL // 0 value in TTL means no TTL @@ -23,7 +23,7 @@ type Storage interface { // TTL return the rest time to live for provided keys // Not supported for the memcached and boltdb - TTL(keys ...string) (map[string]interface{}, error) + TTL(keys ...string) (map[string]string, error) // Delete one or multiple keys. Delete(keys ...string) error |