Documentation ¶
Index ¶
- type Redis
- func (r *Redis) RedisDelete(key string) error
- func (r *Redis) RedisExists(key string) (bool, error)
- func (r *Redis) RedisGet(key string) ([]byte, error)
- func (r *Redis) RedisGetKeys(pattern string) ([]string, error)
- func (r *Redis) RedisIncr(counterKey string) (int, error)
- func (r *Redis) RedisPing() error
- func (r *Redis) RedisSet(key string, value []byte) error
- func (r *Redis) RedisSetEx(key string, exp int, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
Redis redis
func (*Redis) RedisDelete ¶
RedisDelete 运行Redis的DELETE指令
func (*Redis) RedisExists ¶
RedisExists 运行Redis的EXISTS指令
func (*Redis) RedisGet ¶
RedisGet 运行Redis的GET指令
func (*Redis) RedisGetKeys ¶
RedisGetKeys 运行Redis的SCAN-MATCH指令
func (*Redis) RedisIncr ¶
RedisIncr 运行Redis的INCR指令
func (*Redis) RedisSet ¶
RedisSet 运行Redis的SET指令
Click to show internal directories.
Click to hide internal directories.