Documentation ¶
Index ¶
- Variables
- type CacheStore
- type RedisStore
- func (c *RedisStore) Decrement(key string, delta uint64) (newValue uint64, err error)
- func (c *RedisStore) Delete(key string) error
- func (c *RedisStore) GetInt(key string) (int, error)
- func (c *RedisStore) GetString(key string) (string, error)
- func (c *RedisStore) HashSet(key string, values []string) error
- func (c *RedisStore) Increment(key string, delta uint64) (uint64, error)
- func (c *RedisStore) Set(key string, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CacheStore ¶
type CacheStore interface { GetString(key string) (string, error) GetInt(key string) (int, error) Set(key string, value interface{}) error Delete(key string) error Increment(key string, data uint64) (uint64, error) Decrement(key string, data uint64) (uint64, error) HashSet(key string, values []string) error }
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func NewRedisCache ¶
func NewRedisCache(host string, password string) (*RedisStore, error)
func (*RedisStore) Decrement ¶
func (c *RedisStore) Decrement(key string, delta uint64) (newValue uint64, err error)
func (*RedisStore) Delete ¶
func (c *RedisStore) Delete(key string) error
func (*RedisStore) Increment ¶
func (c *RedisStore) Increment(key string, delta uint64) (uint64, error)
func (*RedisStore) Set ¶
func (c *RedisStore) Set(key string, value interface{}) error
Click to show internal directories.
Click to hide internal directories.