update for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-01-29 22:47:57 +03:00
parent 00c4216ed2
commit bf18c371f3
3 changed files with 29 additions and 336 deletions

View File

@@ -39,7 +39,7 @@ func (r *rkv) Disconnect(ctx context.Context) error {
return r.cli.Close()
}
func (r *rkv) Exists(ctx context.Context, key string) error {
func (r *rkv) Exists(ctx context.Context, key string, opts ...store.ExistsOption) error {
//options := store.NewReadOptions(opts...)
//if len(options.Table) == 0 {
// options.Table = r.opts.Table
@@ -128,6 +128,10 @@ func (r *rkv) Options() store.Options {
return r.opts
}
func (r *rkv) Name() string {
return r.opts.Name
}
func (r *rkv) String() string {
return "redis"
}