Versions in this module Expand all Collapse all v1 v1.0.1 Apr 13, 2021 Changes in this version + 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 struct + func NewCache() *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