store: fix for never go-micro (#521)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
89afc015f6
commit
dfad852578
4
redis.go
4
redis.go
@ -14,6 +14,10 @@ func (r *rkv) Init(...store.Option) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *rkv) Close() error {
|
||||||
|
return r.Client.Close()
|
||||||
|
}
|
||||||
|
|
||||||
func (r *rkv) Read(key string, opts ...store.ReadOption) ([]*store.Record, error) {
|
func (r *rkv) Read(key string, opts ...store.ReadOption) ([]*store.Record, error) {
|
||||||
records := make([]*store.Record, 0, 1)
|
records := make([]*store.Record, 0, 1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user