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 中放一个值时,你可以设置一个过期时间。
但是,当您增加一个值时,您不能(至少不能从PHP中)设置新的过期时间。
我的问题:到期时间是否会在增量时重置为初始值?还是它没有改变?还是有另一种方法来重新生成过期时间?
memcache 文档和 PHP 文档都对此含糊其辞
我只需要知道这一点。一个小实验可以告诉我们:过期时间不会在增量后更新。就是这样。