问题描述
通过命令存储apcu缓存:
apcu_store('test1','aaa',2);
应该在2秒后过期,但是当我使用
时apcu_cache_info();
我仍然可以通过“ cache_list”看到它,但是无法再通过apcu_fetch访问它,
如果我使用
apcu_clear_cache();
正在删除所有缓存,但是我只需要删除旧的过期缓存即可解决此问题?
Array
(
[num_slots] => 4099
[ttl] => 0
[num_hits] => 0
[num_misses] => 4
[num_inserts] => 1
[num_entries] => 1
[expunges] => 0
[start_time] => 1599489252
[mem_size] => 160
[memory_type] => mmap
[cache_list] => Array
(
[0] => Array
(
[info] => test1
[ttl] => 2
[num_hits] => 0
[mtime] => 1599489289
[creation_time] => 1599489289
[deletion_time] => 0
[access_time] => 1599489289
[ref_count] => 0
[mem_size] => 160
)
)
[deleted_list] => Array
(
)
[slot_distribution] => Array
(
[699] => 1
)
)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)