Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶ added in v0.0.57
type Map[T any] interface { Load(key Key) (v T, ok bool) Len() int IsExpired(key Key) bool Store(key Key, value T) StoreTTL(key Key, value T, ttl time.Duration) LoadOrStore(key Key, value T) (v T, loaded bool) LoadAndDelete(key Key) (v T, loaded bool) Delete(key Key) Clear() Range(f func(key Key, value T) bool) // contains filtered or unexported methods }
type NewMapOption ¶ added in v0.0.57
type NewMapOption interface {
// contains filtered or unexported methods
}
func WithNewMapOptionCleanerInterval ¶ added in v0.0.57
func WithNewMapOptionCleanerInterval(interval time.Duration) NewMapOption
func WithNewMapOptionTTL ¶ added in v0.0.57
func WithNewMapOptionTTL(ttl time.Duration) NewMapOption
Click to show internal directories.
Click to hide internal directories.