Documentation ¶
Index ¶
- type Connector
- func (r *Connector) DeleteRegex(regex string) error
- func (r *Connector) GetList(regex string) ([]string, error)
- func (r *Connector) GetStringValue(key string) (string, error)
- func (r *Connector) GetValue(key string) ([]byte, error)
- func (r *Connector) WriteValue(key string, value string, TTL ...time.Duration) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { URL string `yaml:"url"` Db int `yaml:"db"` Password string `yaml:"password"` RedisTTL time.Duration `yaml:"ttl"` }
Connector provides access to redis
func (*Connector) DeleteRegex ¶
DeleteRegex - deletes all keys/values with regex match
func (*Connector) GetStringValue ¶
GetStringValue - get string value of key
Click to show internal directories.
Click to hide internal directories.