Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleCache ¶
type SimpleCache[K comparable, V any] struct { // contains filtered or unexported fields }
func New ¶
func New[K comparable, V any](expiration time.Duration) *SimpleCache[K, V]
func (*SimpleCache[K, V]) Get ¶
func (sc *SimpleCache[K, V]) Get(key K) (V, bool)
func (*SimpleCache[K, V]) Set ¶
func (sc *SimpleCache[K, V]) Set(key K, value V)
Click to show internal directories.
Click to hide internal directories.