Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStorage ¶
type MemoryStorage struct {
// contains filtered or unexported fields
}
MemoryStorage represents a "in memory" storage engine.
func NewMemoryStorage ¶
func NewMemoryStorage(addr, auth string) *MemoryStorage
NewRedisStorage returns a new "in memory" storage client.
func (*MemoryStorage) HExists ¶
func (m *MemoryStorage) HExists(key, field string) (bool, error)
HExists implements Storage.HExists()
type RedisStorage ¶
RedisStorage represents the storage engine based on the Redis server.
func NewRedisStorage ¶
func NewRedisStorage(addr, auth string) (*RedisStorage, error)
NewRedisStorage returns a new redis storage client.
func (*RedisStorage) HExists ¶
func (r *RedisStorage) HExists(key, field string) (bool, error)
HExists is a thin wrapper around redis.HExists of `github.com/go-redis/redis`.
Click to show internal directories.
Click to hide internal directories.