'Laravel call Cache::tags::put. Do I have to call Cache::tags::flush to flush out expired data in standard_ref

Run

for ($i = 0; $i < 3; $i++) {
    Cache::tags('test')->put('test_' . Str::random(), time(), 60);
}

first see Redis db enter image description here

after 60s ttl enter image description here

standard_ref Members not removed

Do I have to call Cache::tags::flush to flush out expired data in standard_ref?

I don't think it's good

Cache::tags('test')->flush();

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source