exredis

package
v0.0.0-...-11d4248 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisConn *redis.Pool

RedisConn redisconn pool

Functions

func CaCheReSet

func CaCheReSet(key string, data interface{}, time ...int) (string, error)

CaCheReSet reset

func CaCheSet

func CaCheSet(key string, data interface{}) (string, error)

CaCheSet set

func CaCheSetEXPIRE

func CaCheSetEXPIRE(key string, data interface{}, time int64) (bool, error)

CaCheSetEXPIRE expire

func CacheDelete

func CacheDelete(key string) (bool, error)

CacheDelete delete

func CacheExists

func CacheExists(key string) bool

CacheExists exist

func CacheGet

func CacheGet(key string) ([]byte, error)

CacheGet get

func CacheLikeDeletes

func CacheLikeDeletes(key string) error

CacheLikeDeletes delete

func CacheLikeGet

func CacheLikeGet(key string) ([]string, error)

CacheLikeGet like get

func CloseRedis

func CloseRedis()

CloseRedis close conn

func InitRedisSdk

func InitRedisSdk(cfg *RedisConfig)

InitRedisSdk initsdk

func ReadEnd

func ReadEnd(queue string) string

ReadEnd read list end

func ReadHeader

func ReadHeader(queue string) string

ReadHeader read list header

func WriteData

func WriteData(queue string, data interface{}) error

WriteData write data to queue

func WriteEnd

func WriteEnd(queue, message string) error

WriteEnd 列表

func WriteHeader

func WriteHeader(queue, message string) error

WriteHeader 列表

Types

type RedisConfig

type RedisConfig struct {
	MaxIdle     int
	MaxActive   int
	IdleTimeout time.Duration
	RedisAddr   string
	RedisPass   string
}

RedisConfig redis config

func (*RedisConfig) Check

func (rc *RedisConfig) Check()

Check check

Jump to

Keyboard shortcuts

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