Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provisioner ¶
type Provisioner interface { SetKV(string, string, time.Duration) error GetValue(string) (string, error) KeyExists(string) (bool, error) RemoveKey(string) (bool, error) }
Provisioner is the interface to use for a provisioner based on redis
type ProvisionerRedis ¶
type ProvisionerRedis struct {
RedisClient *redis.Client
}
ProvisionerRedis provides the definition of redis provisioner
func (ProvisionerRedis) GetValue ¶
func (e ProvisionerRedis) GetValue(key string) (string, error)
GetValue gets the value corresponding to the passed key from redis
func (ProvisionerRedis) KeyExists ¶
func (e ProvisionerRedis) KeyExists(key string) (bool, error)
KeyExists checks if the passed key exists already in redis
Click to show internal directories.
Click to hide internal directories.