Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在不实际获取 Memcached 项目的情况下延长其生命周期吗?
当然,我可以得到该项目,再次设置它并增加寿命。但是,这样我必须先将对象复制到脚本的内存中,这从性能的角度来看并不好。
听起来您可能根本不想设置 TTL(使用 0)并让 LRU 驱逐您不访问的东西。如果您根本不打算访问这些项目,那么您为什么要关心它们是否存在呢?