Versions in this module Expand all Collapse all v0 v0.1.0 Feb 18, 2022 Changes in this version + type CallbackFunc func(key, value interface{}) + type Option func(*option) + func WithOnClearingUp(fn func(elapsed time.Duration, removed, remaining uint64)) Option + func WithSegmentSize(n int) Option + type TimeBoundMap interface + Get func(key interface{}) (value interface{}, ok bool) + GetToDoWithLock func(key interface{}, do func(value interface{}, ok bool)) + Len func() int + Set func(key, value interface{}, lifetime time.Duration, onCleaned ...CallbackFunc) + Snapshot func() map[interface{}]interface{} + UnsafeGet func(key interface{}) (value interface{}, ok bool) + UnsafeSet func(key, value interface{}, lifetime time.Duration, onCleaned ...CallbackFunc) + func New(cleanInterval time.Duration, opts ...Option) TimeBoundMap