cache

package
v0.0.0-...-5870b03 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisCache

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

func NewRedisCache

func NewRedisCache(redisConfig configs.RedisConfig) (rc *RedisCache, err error)

func (*RedisCache) ClearAll

func (rc *RedisCache) ClearAll() (err error)

func (*RedisCache) Decr

func (rc *RedisCache) Decr(key string, delta int64) (err error)

func (*RedisCache) Del

func (rc *RedisCache) Del(key string) (err error)

func (*RedisCache) Get

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

func (*RedisCache) Incr

func (rc *RedisCache) Incr(key string, delta int64) (err error)

func (*RedisCache) IsExist

func (rc *RedisCache) IsExist(key string) (isExist bool)

func (*RedisCache) Put

func (rc *RedisCache) Put(key string, value interface{}) (err error)

Jump to

Keyboard shortcuts

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