go-cache
go-cache copied to clipboard
Allow querying of expiration, cleanup durations
Some business caching logic depends on the exact values used for expiration and cleanup of the cache. Rather than store these twice, what if the cache provided read-only methods for obtaining these values?