Versions in this module Expand all Collapse all v0 v0.1.0 Nov 11, 2020 Changes in this version + type CoolCache interface + Get func(key Name) (int64, error) + Invalidate func(key Name, keys ...Name) + InvalidateAll func() + Put func(key Name, value int64) + func NewCoolCache(options CoolCacheOptions) CoolCache + type CoolCacheOptions struct + Clock clock.Clock + ExpireAfterRead time.Duration + ExpireAfterWrite time.Duration + HashCodeFunc func(key Name) int + Load LoadFunc + MaxSize int32 + RemovalListeners []RemovalListener + ShardCount int + type Example struct + func New() *Example + func (e *Example) AddAges(names ...Name) int64 + func (e *Example) Set(name Name, age int64) + type LoadFunc func(Name) (int64, error) + type Name string + type RemovalListener func(RemovalNotification) + type RemovalNotification struct + Key Name + Reason loadingcache.RemovalReason + Value int64