Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[T any] interface { Clone(ctx context.Context, exp time.Duration) Cache[T] Close() Clean() Merge(c Cache[T]) Walk(fct func(key any, val interface{}, exp time.Duration) bool) Load(key any) (val interface{}, exp time.Duration, ok bool) Store(key any, val interface{}) time.Duration Delete(key any) LoadOrStore(key any, val interface{}) (res interface{}, exp time.Duration, loaded bool) LoadAndDelete(key any) (val interface{}, loaded bool) }
Click to show internal directories.
Click to hide internal directories.