diff options
author | Valery Piashchynski <[email protected]> | 2021-06-08 22:36:40 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-08 22:36:40 +0300 |
commit | 4f3e16892479db4bd8280a46987f3105e46e5c96 (patch) | |
tree | 13c4c3f380d8309b95c9600cc2000d1d5ab87cda /plugins/kv/interface.go | |
parent | 49ce25e80ba99ac91bce7ea2b9b632de53e07c0d (diff) | |
parent | cc271dceb13d3929f0382311dfce3dfed2ce04ce (diff) |
#712 feat(ws, kv): switch from the `flatbuffers` to the `protobuf`v2.3.0-beta.2
#712 feat(ws, kv): switch from the `flatbuffers` to the `protobuf`
Diffstat (limited to 'plugins/kv/interface.go')
-rw-r--r-- | plugins/kv/interface.go | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/plugins/kv/interface.go b/plugins/kv/interface.go index 20dbb8b3..7841f9a2 100644 --- a/plugins/kv/interface.go +++ b/plugins/kv/interface.go @@ -1,14 +1,6 @@ package kv -// Item represents general storage item -type Item struct { - // Key of item - Key string - // Value of item - Value string - // live until time provided by TTL in RFC 3339 format - TTL string -} +import kvv1 "github.com/spiral/roadrunner/v2/pkg/proto/kv/v1beta" // Storage represents single abstract storage. type Storage interface { @@ -24,10 +16,10 @@ type Storage interface { // Set used to upload item to KV with TTL // 0 value in TTL means no TTL - Set(items ...Item) error + Set(items ...*kvv1.Item) error // MExpire sets the TTL for multiply keys - MExpire(items ...Item) error + MExpire(items ...*kvv1.Item) error // TTL return the rest time to live for provided keys // Not supported for the memcached and boltdb |