Documentation ¶
Index ¶
- func Delete(pool *redis.Pool, key string) error
- func Exists(pool *redis.Pool, key string) (bool, error)
- func Get(pool *redis.Pool, key string) (string, error)
- func HDelete(pool *redis.Pool, key, field string) error
- func HGet(pool *redis.Pool, key, field string) (string, error)
- func HSet(pool *redis.Pool, key, field, value string) error
- func Set(pool *redis.Pool, key, value string, expire int32) error
- func SetEx(pool *redis.Pool, key, value string, expire int32) error
- func SetNx(pool *redis.Pool, key, value string, expire int32) error
- type Cache
- func (c *Cache) BuildKey(key string) string
- func (c *Cache) Delete(redisConn redis.Conn, key string) error
- func (c *Cache) Exists(redisConn redis.Conn, key string) (bool, error)
- func (c *Cache) Get(redisConn redis.Conn, key string) (string, error)
- func (c *Cache) HDelete(redisConn redis.Conn, key, field string) error
- func (c *Cache) HGet(redisConn redis.Conn, key, field string) (string, error)
- func (c *Cache) HSet(redisConn redis.Conn, key, field, value string) error
- func (c *Cache) Set(redisConn redis.Conn, key, value string, expire int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.