Documentation ¶
Index ¶
- Variables
- func Setup() bool
- type RedisDb
- func (this *RedisDb) Close() error
- func (this *RedisDb) Get(key string) *redis.StringCmd
- func (this *RedisDb) HDel(key string, fields ...string) *redis.IntCmd
- func (this *RedisDb) HGet(key string, field string) *redis.StringCmd
- func (this *RedisDb) HSet(key string, field string, value interface{}) *redis.BoolCmd
- func (this *RedisDb) Ping() *redis.StatusCmd
- func (this *RedisDb) Publish(channel string, message interface{}) *redis.IntCmd
- func (this *RedisDb) Set(key string, value interface{}, expiration time.Duration) *redis.StatusCmd
- func (this *RedisDb) Subscribe(channels ...string) *redis.PubSub
Constants ¶
This section is empty.
Variables ¶
View Source
var Global_redis = &RedisDb{}
Functions ¶
Types ¶
type RedisDb ¶
type RedisDb struct { }
Click to show internal directories.
Click to hide internal directories.