Documentation
¶
Overview ¶
Package cache assemble all functions for redis
Index ¶
- func RedisDel(redisURI string, keyName string)
- func RedisDelWithPrefix(redisURI string, keyPrefix string)
- func RedisDeleteKeysHasPrefix(redisURI string, prefixes []string)
- func RedisFlushAll(redisURI string)
- func RedisFlushDB(redisURI string)
- func RedisGet(redisURI string, keyName string) (z string, err error)
- func RedisKeys(redisURI string, keyPrefix string) (z []string)
- func RedisPing(redisURI string) (b bool)
- func RedisSet(redisURI string, keyName string, value string, expire time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedisDelWithPrefix ¶
RedisDelWithPrefix permit to list keys keys has prefix like keyName* and then, delete keys
func RedisDeleteKeysHasPrefix ¶
RedisDeleteKeysHasPrefix permit to list keys keys has prefix like keyName* and then, delete keys
func RedisFlushAll ¶
func RedisFlushAll(redisURI string)
RedisFlushAll permit to flush all db in redis
func RedisFlushDB ¶
func RedisFlushDB(redisURI string)
RedisFlushDB permit to flush actual used db in redis
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.