redisdriver

package
v1.0.0-rc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRedisPool

func CreateRedisPool(idel, active, timeout, host, password string) (*redis.Pool, error)

Types

type RedisCache

type RedisCache struct {
	Conn   *redis.Pool
	Prefix string
}

func (*RedisCache) Empty

func (c *RedisCache) Empty() error

func (*RedisCache) EmptyByMatch

func (c *RedisCache) EmptyByMatch(str string) error

func (*RedisCache) Forget

func (c *RedisCache) Forget(str string) error

func (*RedisCache) Get

func (c *RedisCache) Get(str string) (interface{}, error)

func (*RedisCache) Has

func (c *RedisCache) Has(str string) (bool, error)

func (*RedisCache) Set

func (c *RedisCache) Set(str string, value interface{}, expires ...int) error

Jump to

Keyboard shortcuts

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