Documentation ¶
Index ¶
- Constants
- type Context
- func (self *Context) Close()
- func (ctx *Context) Delete(keys ...interface{}) error
- func (ctx *Context) DeleteOrFail(keys ...interface{}) bool
- func (ctx *Context) Exists(key string) (bool, error)
- func (ctx *Context) GetBool(key string) (bool, bool)
- func (ctx *Context) GetBytes(key string) (bool, []byte)
- func (ctx *Context) GetFloat64(key string) (bool, float64)
- func (ctx *Context) GetInt64(key string) (bool, int64)
- func (ctx *Context) GetKeysFloat64(regex string) map[string]float64
- func (ctx *Context) GetKeysInt64(regex string) map[string]int64
- func (ctx *Context) GetKeysString(regex string) map[string]string
- func (ctx *Context) GetString(key string) (bool, string)
- func (ctx *Context) HDel(hash, key string) bool
- func (ctx *Context) HGetAll(hash string) (map[string]string, error)
- func (ctx *Context) HGetBool(m, key string) (bool, bool)
- func (ctx *Context) HGetString(m, key string) (bool, string)
- func (ctx *Context) HIncrby(hashtable, key string, n int) error
- func (ctx *Context) HIncrbyfloat(hashtable, key string, n float64) error
- func (ctx *Context) HKeys(hash string) (bool, []string)
- func (ctx *Context) HSet(obj, key string, value interface{}) error
- func (ctx *Context) Incrby(key string, n int) error
- func (ctx *Context) Incrbyfloat(key string, n float64) error
- func (ctx *Context) Set(key string, value interface{}) error
- func (ctx *Context) SetAndExpire(key string, value interface{}, expireSeconds int) error
- type RedisClient
Constants ¶
View Source
const ( // redis REDIS_MAX_IDLE_CONN = 10 REDIS_PORT = "6379" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func (*Context) Delete ¶
Delete uses the DEL command to remove any keys featuring in the supplied slice.
func (*Context) DeleteOrFail ¶
Delete uses the DEL command to remove any keys featuring in the supplied slice.
func (*Context) GetFloat64 ¶
GetFloat64 returns a key's value as float64
func (*Context) GetKeysFloat64 ¶
GetKeysFloat64 returns keys matching regex
func (*Context) GetKeysInt64 ¶
GetKeysInt64 returns keys matching regex
func (*Context) GetKeysString ¶
GetKeysString returns keys matching regex
func (*Context) HGetString ¶
HGetString retrieves the map's key's value as a string
func (*Context) HIncrbyfloat ¶
Incrby increments the map's key's value with an float
func (*Context) HSet ¶
HSet uses the HSET command to store an interface{} against the supplied key, in the supplied map.
func (*Context) Incrbyfloat ¶
Incrbyfloat increments the key's value by a float value
type RedisClient ¶
func NewClient ¶
func NewClient(redisHost, redisPassword string) *RedisClient
func (*RedisClient) NewConn ¶
func (self *RedisClient) NewConn() *Context
Click to show internal directories.
Click to hide internal directories.