go-cache icon indicating copy to clipboard operation
go-cache copied to clipboard

Add method to retrieve CacheItem rather than the value of the item

Open rahulraheja opened this issue 8 years ago • 3 comments

Alternative implementation, more generic, for https://github.com/patrickmn/go-cache/pull/47

rahulraheja avatar May 06 '17 01:05 rahulraheja

@patrickmn Any thoughts on the same?

rahulraheja avatar Jun 29 '17 02:06 rahulraheja

I have a valid use case for using this method new method - GetCacheItem. It'll let me implement custom logic based on the item expiration time... more specifically it'll be useful to implement graceful degradation using go-cache

rumbergd avatar Jul 06 '17 14:07 rumbergd

Found this fork: https://github.com/arp242/zcache

pablodz avatar Jan 03 '24 02:01 pablodz