Documentation
¶
Index ¶
- func Contains[K comparable, V any](key K) bool
- func Delete[K comparable, V any](key K)
- func DeleteExpired[K comparable, V any]()
- func Get[K comparable, V any](key K) (value V, ok bool)
- func Keys[K comparable, V any]() []K
- func Set[K comparable, V any](key K, val V, opts ...cache2.ItemOption)
- func WithExpiration(exp time.Duration) cache2.ItemOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[K comparable, V any](key K) bool
func Delete ¶
func Delete[K comparable, V any](key K)
func DeleteExpired ¶
func DeleteExpired[K comparable, V any]()
func Get ¶
func Get[K comparable, V any](key K) (value V, ok bool)
func Keys ¶
func Keys[K comparable, V any]() []K
func Set ¶
func Set[K comparable, V any](key K, val V, opts ...cache2.ItemOption)
func WithExpiration ¶
func WithExpiration(exp time.Duration) cache2.ItemOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.