redis

package
v0.0.0-...-041d6b2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheManager

func NewCacheManager(cfg *config.Config) cache.CacheManager

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(redisClient *redis.Client, name string) *Cache

func (*Cache) Delete

func (rc *Cache) Delete(key string)

func (*Cache) Exists

func (rc *Cache) Exists(key string) bool

func (*Cache) Get

func (rc *Cache) Get(key string, value interface{}) error

func (*Cache) Keys

func (rc *Cache) Keys() []string

func (*Cache) Store

func (rc *Cache) Store(key string, value interface{}) error

func (*Cache) StoreWithTTL

func (rc *Cache) StoreWithTTL(key string, value interface{}, ttl time.Duration) error

type CacheManager

type CacheManager struct {
	// contains filtered or unexported fields
}

func (*CacheManager) Cache

func (cm *CacheManager) Cache(name string) cache.Cache

Jump to

Keyboard shortcuts

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