Documentation ¶
Index ¶
- type Redis
- func (rd *Redis) Close() error
- func (rd *Redis) GetValue(key string) (result interface{}, err error)
- func (rd *Redis) Init() error
- func (rd *Redis) IsConnected() bool
- func (rd *Redis) Open() error
- func (rd *Redis) Remove(key string) error
- func (rd *Redis) SetValue(key string, value interface{}) error
- func (rd *Redis) SetValueWithTimeout(key string, value interface{}, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct { Host string `yaml:"host"` // Host Port *int32 `yaml:"port"` // Port default 6379 Password string `yaml:"password"` // Password DB int `yaml:"db"` // DB ValueTimeout *int `yaml:"valueTimeout"` //ValueTimeout minutes default 60 minutes // contains filtered or unexported fields }
Redis - redis settings
func (*Redis) IsConnected ¶ added in v1.0.5
* IsConnection - status connection
Click to show internal directories.
Click to hide internal directories.