package
module
Version:
v0.3.3
Opens a new window with list of versions in this module.
Published: Jul 30, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
xcache
less is more cache
Feature
- high performance base on bigcahe
- reduce golang gc and STW
- generic api base on golang generic
usage
see example
global_cache.go is a simple golbal cache usage
new_cache.go is a custom cache usage
Documentation
¶
func Get[X, Y any](key X) Y
Init initializes the cache
func Set[X, Y any](key X, value Y)
func XSet[X, Y any](xc *XCache, key X, value Y)
XCache is a wrapper of bigcache.BigCache
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.