Versions in this module Expand all Collapse all v1 v1.0.0 Aug 2, 2020 Changes in this version + 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