Documentation ¶
Index ¶
- type Cluster
- func (r *Cluster) Del(key string) error
- func (r *Cluster) DelByPattern(pattern string) error
- func (r *Cluster) FindByPattern(pattern string) (map[string]interface{}, error)
- func (r *Cluster) Flush() error
- func (r *Cluster) FlushByPattern(pattern string) error
- func (r *Cluster) Get(key string, v interface{}) error
- func (r *Cluster) IsKeyNotFound(err error) bool
- func (r *Cluster) Ping() error
- func (r *Cluster) Set(key string, v interface{}, timeout time.Duration) error
- func (r *Cluster) SetExpire(key string, expiration time.Duration) bool
- func (r *Cluster) SetExpireAt(key string, expireAt time.Time) bool
- type ClusterConfig
- type Config
- type Redis
- func (r *Redis) Del(key string) error
- func (r *Redis) DelByPattern(pattern string) error
- func (r *Redis) FindByPattern(pattern string) (map[string]interface{}, error)
- func (r *Redis) Flush() error
- func (r *Redis) FlushByPattern(pattern string) error
- func (r *Redis) Get(key string, v interface{}) error
- func (r *Redis) IsKeyNotFound(err error) bool
- func (r *Redis) Ping() error
- func (r *Redis) Set(key string, v interface{}, timeout time.Duration) error
- func (r *Redis) SetExpire(key string, expiration time.Duration) bool
- func (r *Redis) SetExpireAt(key string, expireAt time.Time) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
ClusterClient *redis.ClusterClient
}
func NewClusterClient ¶
func NewClusterWithCfg ¶
func NewClusterWithCfg(cfg ClusterConfig) Cluster
func (*Cluster) DelByPattern ¶
func (*Cluster) FindByPattern ¶
func (*Cluster) FlushByPattern ¶
func (*Cluster) IsKeyNotFound ¶
type ClusterConfig ¶
type Redis ¶
type Redis struct {
Client *redis.Client
}
func NewWithCfg ¶
func (*Redis) DelByPattern ¶
func (*Redis) FindByPattern ¶
func (*Redis) FlushByPattern ¶
func (*Redis) IsKeyNotFound ¶
Click to show internal directories.
Click to hide internal directories.