Remove need for slice when setting cache tags. Require cache key for get/set ops.
This commit is contained in:
parent
bfbb9669aa
commit
3f053711ba
5 changed files with 20 additions and 11 deletions
|
|
@ -73,14 +73,14 @@ func TestCacheClient(t *testing.T) {
|
|||
Group(group).
|
||||
Key(key).
|
||||
Data(data).
|
||||
Tags([]string{"tag1"}).
|
||||
Tags("tag1").
|
||||
Save(context.Background())
|
||||
require.NoError(t, err)
|
||||
|
||||
// Flush the tag
|
||||
err = c.Cache.
|
||||
Flush().
|
||||
Tags([]string{"tag1"}).
|
||||
Tags("tag1").
|
||||
Exec(context.Background())
|
||||
require.NoError(t, err)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue