Explain how you can update memcached when data changes?
Answer Posted / Teekaram Saraswat
To update Memcached when data changes, you can implement a technique called touch-expire. This involves periodically touching (updating the item's timestamp) cached items to keep them alive. If an item is no longer needed or has changed, it should be explicitly deleted from Memcached. Additionally, some applications use a cache invalidation strategy where affected items are removed from Memcached when their corresponding data changes in the database.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers