Re:Groupcache: an alternative to memcached, written in Go
by steveklabnik on Monday July 29, 2013 @01:15PM
(#6122429)
The intention with Russian doll caching is that the cache uses LRU, so you don't need to worry about clearing the cache. No poison pill needed. Memcache operates this way.
Given that there's an 'lru' folder with a package that says 'implements a LRU cache' as the first comment, I assume this works that way as well.
Re:Groupcache: an alternative to memcached, written in Go
by grey-area on Monday July 29, 2013 @01:50PM
(#6122664)
Yes in a perfect world you never need to clear everything, but sometimes it's useful for testing or to allow end users to clear the cache in case of caching bugs.
Given that there's an 'lru' folder with a package that says 'implements a LRU cache' as the first comment, I assume this works that way as well.