package
0.1.10
Repository: https://github.com/kolbis/corego.git
Documentation: pkg.go.dev

# Functions

DefaultConfig returns a default configuration of the cache.
DefaultDoubleCacheConfig returns a default configuration of the double cache.
Jitter returns a time.Duration between duration and duration + maxFactor * duration, to allow clients to avoid converging on periodic behavior.
NewCache creates a new cache instance.
NewDoubleCache create a DoubleCache.

# Constants

DefaultExpiration : Time by default it will remain an item in the cache.
DefaultJitterFactor factor to apply by default on the jitter.
DefaultRegion : Region used when no region is specified.
DefaultTimeout : Time maxium allow to take a refreshing function to take.

# Structs

Cache used to store information in memory divided by regions.
Config used to config the cache.
DoubleCache is a cache with 2-layer of cache.
DoubleCacheConfig is used to configure the double cache.

# Type aliases

RefreshFunction function type that will renew the data.