package
Version:
v7.0.97
Opens a new window with list of versions in this module.
Published: Nov 4, 2025
License: Apache-2.0
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
¶
Cache - Provides simple mechanism to hold any key value in memory
wrapped around via sync.Map but typed with generics.
func (r *Cache[K, V]) Delete(key K)
Delete delete the key
func (r *Cache[K, V]) Get(key K) (value V, ok bool)
Get - Returns a value of a given key if it exists.
func (r *Cache[K, V]) Set(key K, value V)
Set - Will persist a value into cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.