package
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: May 16, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type Cache[K comparable, V any] interface {
Get(key K) (value V, ok bool)
Set(key K, val V)
SetWithExp(key K, val V, exp time.Duration)
Delete(key K)
}
Cache defines the generics cache interface for 1.8 or above version.
Notice: SetWithExp function is not necessarily implemented
Source Files
¶
Click to show internal directories.
Click to hide internal directories.