1

実際に取得せずに Memcached アイテムの有効期間を延長できますか?

確かに、アイテムを手に入れて、もう一度セットして寿命を延ばすことができます。ただし、この方法では、最初にオブジェクトをスクリプトのメモリにコピーする必要があります。これは、パフォーマンスの観点からは良くありません。

4

1 に答える 1

0

It sounds like you probably just want to not set a TTL at all (use 0) and let the LRU evict things that you aren't accessing. If you don't intend to access the items at all, then why do you care if they're there?

于 2010-11-22T15:44:22.063 に答える