redis

package
v0.0.0-...-0747d37 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: GPL-3.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisConnPool

type RedisConnPool struct {
	// contains filtered or unexported fields
}
var (
	Cache *RedisConnPool
)

func (*RedisConnPool) CheckSETString

func (p *RedisConnPool) CheckSETString(key, value string) (int, error)

func (*RedisConnPool) Close

func (p *RedisConnPool) Close() error

关闭连接池

func (*RedisConnPool) DelKey

func (p *RedisConnPool) DelKey(key string) (interface{}, error)

// Key(键)

func (*RedisConnPool) DelSETKeyValue

func (p *RedisConnPool) DelSETKeyValue(key string, value ...string) (int64, error)

func (*RedisConnPool) Do

func (p *RedisConnPool) Do(command string, args ...interface{}) (interface{}, error)

当前某一个数据库,执行命令

func (*RedisConnPool) ExpireKey

func (p *RedisConnPool) ExpireKey(key string, seconds int64) (interface{}, error)

func (*RedisConnPool) GetBytes

func (p *RedisConnPool) GetBytes(key string) ([]byte, error)

func (*RedisConnPool) GetFristDel

func (p *RedisConnPool) GetFristDel(key string) (interface{}, error)

func (*RedisConnPool) GetHashMapInt

func (p *RedisConnPool) GetHashMapInt(key string) (map[string]int, error)

func (*RedisConnPool) GetHashMapInt64

func (p *RedisConnPool) GetHashMapInt64(key string) (map[string]int64, error)

func (*RedisConnPool) GetHashMapString

func (p *RedisConnPool) GetHashMapString(key string) (map[string]string, error)

func (*RedisConnPool) GetInt

func (p *RedisConnPool) GetInt(key string) (int, error)

func (*RedisConnPool) GetInt64

func (p *RedisConnPool) GetInt64(key string) (int64, error)

func (*RedisConnPool) GetLastDel

func (p *RedisConnPool) GetLastDel(key string) (interface{}, error)

func (*RedisConnPool) GetListString

func (p *RedisConnPool) GetListString(key string) ([]string, error)

func (*RedisConnPool) GetSETCount

func (p *RedisConnPool) GetSETCount(key string) (int64, error)

func (*RedisConnPool) GetSETRandStringRm

func (p *RedisConnPool) GetSETRandStringRm(key string) (string, error)

func (*RedisConnPool) GetString

func (p *RedisConnPool) GetString(key string) (string, error)

func (*RedisConnPool) Keys

func (p *RedisConnPool) Keys(pattern string) ([]string, error)

func (*RedisConnPool) KeysByteSlices

func (p *RedisConnPool) KeysByteSlices(pattern string) ([][]byte, error)

func (*RedisConnPool) SetAndExpire

func (p *RedisConnPool) SetAndExpire(key string, value interface{}, expire int64) (interface{}, error)

// String(字符串)

func (*RedisConnPool) SetHashMap

func (p *RedisConnPool) SetHashMap(key string, fieldValue map[string]interface{}) (interface{}, error)

// Hash(哈希表)

func (*RedisConnPool) SetList

func (p *RedisConnPool) SetList(key string, list []string) (interface{}, error)

func (*RedisConnPool) SetSETString

func (p *RedisConnPool) SetSETString(key string, value string) (int, error)

func (*RedisConnPool) SetString

func (p *RedisConnPool) SetString(key string, value interface{}) (interface{}, error)

// String(字符串)

func (*RedisConnPool) SetStringList

func (p *RedisConnPool) SetStringList(key string, s string) (interface{}, error)

Jump to

Keyboard shortcuts

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