ideas icon indicating copy to clipboard operation
ideas copied to clipboard

cache flush need delete the tagkey

Open Except10n opened this issue 7 years ago • 1 comments

Cache::tags(['tag1'])->putMany(['a' => 1, 'b' => 2], 10);

when i use flush() to clean the tag1

Cache::tags(['tag1'])->flush();

There will still be tagkey , like "prefix:tag:tag1:key" , It's useless, why keep the kv record ?

Except10n avatar Dec 07 '17 08:12 Except10n

Would love the option to remove the Cache::tags as well. When I flush a key connected to a tag, why not remove the tag as well. I initially thought I did not flush properly, but it seems to be something that is what it is currently. Keys and values attached to tag are removed but the tag with the key referring to those keys remains. The tag in question should be removed as well.

jasperf avatar May 02 '21 02:05 jasperf