Documentation
¶
Index ¶
- type Config
- type RedisStore
- func (r *RedisStore) Close()
- func (r *RedisStore) Delete(key string) error
- func (r *RedisStore) DeleteAll() error
- func (r *RedisStore) Get(key string) interface{}
- func (r *RedisStore) GetCacheResponse(key string) []byte
- func (r *RedisStore) Set(key string, value interface{}, ttl time.Duration)
- func (r *RedisStore) SetCacheResponse(key string, value []byte, ttl time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
var RedisCache *RedisStore
func NewRedisStore ¶
func NewRedisStore() (*RedisStore, error)
func (*RedisStore) Close ¶
func (r *RedisStore) Close()
func (*RedisStore) Delete ¶
func (r *RedisStore) Delete(key string) error
func (*RedisStore) DeleteAll ¶
func (r *RedisStore) DeleteAll() error
func (*RedisStore) Get ¶
func (r *RedisStore) Get(key string) interface{}
func (*RedisStore) GetCacheResponse ¶
func (r *RedisStore) GetCacheResponse(key string) []byte
func (*RedisStore) SetCacheResponse ¶
func (r *RedisStore) SetCacheResponse(key string, value []byte, ttl time.Duration)
Click to show internal directories.
Click to hide internal directories.