How key-based cache expiration works
- The cache key is fluid part and the cache content is the fixed part
- key is calculated from the content
- when key changes, simply write the new content to new key
- will generate a lot of cache garbage => don’t care => Memcached will automatically evict the oldest keys first when it runs out of space
- You deal with dependency structure by tying the model object together on updates
- The caching itself then happens in the views based on partials rendering the objects in question
沒有留言:
張貼留言