Sync moves to List
This commit is contained in:
parent
2766eceb32
commit
0658d8ea0a
2
redis.go
2
redis.go
@ -64,7 +64,7 @@ func (r *rkv) Write(records ...*store.Record) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *rkv) Sync() ([]*store.Record, error) {
|
func (r *rkv) List() ([]*store.Record, error) {
|
||||||
keys, err := r.Client.Keys("*").Result()
|
keys, err := r.Client.Keys("*").Result()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user