redisImp

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeStorageRedisImp

type RuntimeStorageRedisImp struct {
	//TODO 读写锁?
	sync.RWMutex
	RedisPool *redis.Pool
}

func NewRuntimeStorageRedisImp

func NewRuntimeStorageRedisImp(redisPool *redis.Pool) *RuntimeStorageRedisImp

func (*RuntimeStorageRedisImp) CheckKeyExit

func (r *RuntimeStorageRedisImp) CheckKeyExit(key string) (bool, error)

func (*RuntimeStorageRedisImp) DelValueByKey

func (r *RuntimeStorageRedisImp) DelValueByKey(key string) error

func (*RuntimeStorageRedisImp) GetAllKeys

func (r *RuntimeStorageRedisImp) GetAllKeys() ([]string, error)

func (*RuntimeStorageRedisImp) GetValueByKey

func (r *RuntimeStorageRedisImp) GetValueByKey(key string) (interface{}, error)

func (*RuntimeStorageRedisImp) GetValueByKeyToBool

func (r *RuntimeStorageRedisImp) GetValueByKeyToBool(key string) (bool, error)

func (*RuntimeStorageRedisImp) GetValueByKeyToBytes

func (r *RuntimeStorageRedisImp) GetValueByKeyToBytes(key string) ([]byte, error)

func (*RuntimeStorageRedisImp) GetValueByKeyToInt

func (r *RuntimeStorageRedisImp) GetValueByKeyToInt(key string) (int, error)

func (*RuntimeStorageRedisImp) GetValueByKeyToString

func (r *RuntimeStorageRedisImp) GetValueByKeyToString(key string) (string, error)

func (*RuntimeStorageRedisImp) SetValueByKey

func (r *RuntimeStorageRedisImp) SetValueByKey(key string, value interface{}) error

Jump to

Keyboard shortcuts

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