cache

package
v0.0.0-...-5105834 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedisCache

func GetRedisCache() *goCache.RedisCache

GetRedisCache get redis cache

func GetRedisCacheWithCompress

func GetRedisCacheWithCompress() *goCache.RedisCache

GetRedisCacheWithCompress get redis cache which will compress data

func GetRedisSession

func GetRedisSession() *goCache.RedisSession

GetRedisSession get redis session

func NewLRUCache

func NewLRUCache(maxEntries int, defaultTTL time.Duration) *lruttl.Cache

NewLRUCache new lru cache with ttl

func NewMultilevelCache

func NewMultilevelCache(lruSize int, ttl time.Duration, prefix string) *lruttl.L2Cache

NewMultilevelCache create a new multilevel cache

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL