This is a stripped-down version of patrickmn's go-cache.
The following have been removed:
- increment and decrement functions
- serialization and deserialization
- experimental sharded cache
Other notable changes include:
- keys are now
interface{}
instead ofstring
- added
GetOrLoad
function