Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How you can update memcached when data changes?

Answer Posted / Pushpender Singh

To update Memcached when data changes, you need to implement a technique called touch-expire or eviction policy:
1. Touch-Expire: In this method, the client updates the expiration time of the cache every time data is accessed. This ensures that the data in the cache stays up-to-date as long as it's being accessed frequently.
2. Eviction Policy: When the cache reaches its maximum capacity, an eviction policy such as LRU (Least Recently Used) or LFU (Least Frequently Used) is used to remove old data and make room for new updates.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is your expertise on the devops projects?

2