In Laravel you can place items in the Cache with a tag like:
Cache::tags('bans')->put($result->ip, $result->reason);
But I can't seem to find a way to get all items with a certain tag. Is it possible to retrieve all items with a certain tag?
Like:
Cache::tags('bans')->all();
Or something like that
In 'yourKeyGoesHere' you can insert a string used as same as a like with a * or insert directly the exactly key.
$redis = Cache::getRedis();
$a_keys = $redis->keys("*yourKeyGoesHere*");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With