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(func(key Key, value T) bool) }
type NewMapOption ¶ added in v0.0.57
type NewMapOption interface {
// contains filtered or unexported methods
}
func WithNewMapOptionTTL ¶ added in v0.0.57
func WithNewMapOptionTTL(d time.Duration) NewMapOption
func WithNewMapOptionUseGoroutineCleaner ¶
func WithNewMapOptionUseGoroutineCleaner(d time.Duration) NewMapOption
Click to show internal directories.
Click to hide internal directories.