Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct { URI string `json:"uri"` Port string `json:"port"` // paswword must be base64 Password string `json:"password"` DBIndex int `json:"dbindex"` // contains filtered or unexported fields }
Struct of the redis-configuration as json. Ensure the "passwd" value is base64 encrypted.
{ "address" : "redis:port", "passwd" : "<password>", "dbindex" : 0 }
func (Redis) Add ¶
add a key value (plus duration) pair to the redis instance
Parameters:
- `key` : string > used as the address of the value
- `value` : string > contains the value, of the key
- `expirationtime` : int > expiration time of the key-value-pair, 0 means it does not expire
func (*Redis) CheckConnection ¶
check the connection to redis
Click to show internal directories.
Click to hide internal directories.