cachex

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCacheKey

func BuildCacheKey(cacheKey string) string

func CacheDir

func CacheDir(dir ...string) string

func CacheKeyPrefix

func CacheKeyPrefix(prefix ...string) string

func CacheKeyRedismqDelayable

func CacheKeyRedismqDelayable(cacheKey ...string) string

func CacheKeyRedismqNormal

func CacheKeyRedismqNormal(cacheKey ...string) string

func DefaultStore

func DefaultStore(name ...string) string

func Store

func Store(name string) ccachex.ICache

func WithFileCache

func WithFileCache()

func WithMemoryCache

func WithMemoryCache(defaultTtl time.Duration, cleanupInterval time.Duration)

func WithRedisCache

func WithRedisCache()

Types

type CacheEntry

type CacheEntry struct {
	Data     string
	ExpireAt time.Time
}

Jump to

Keyboard shortcuts

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