Versions in this module Expand all Collapse all v0 v0.1.5 Dec 16, 2019 v0.1.4 Dec 16, 2019 Changes in this version + const DefaultAESKey + const DefaultKeyPrefix + const DefaultRedisDB + const DefaultRedisHost + const DefaultRedisPassword + const DefaultRedisPort + const DefaultRedisTLS + const DefaultRedisTLSInsecure + const DefaultRedisTimeout + const DefaultValuePrefix + const EnvNameAESKey + const EnvNameKeyPrefix + const EnvNameRedisDB + const EnvNameRedisHost + const EnvNameRedisPassword + const EnvNameRedisPort + const EnvNameRedisTimeout + const EnvNameTLSEnabled + const EnvNameTLSInsecure + const EnvNameValuePrefix + const InactiveLockDuration + const LockDuration + const ScanCount + type Options struct + AESKey string + DB int + Host string + KeyPrefix string + Password string + Port string + TLSEnabled bool + TLSInsecure bool + Timeout int + ValuePrefix string + func GetOptions() *Options + func (op *Options) GetAESKeyByte() []byte + type RedisStorage struct + Client *redis.Client + ClientLocker *redislock.Client + Options *Options + func GetRedisStorage() (*RedisStorage, error) + func (rd *RedisStorage) DecryptStorageData(bytes []byte) (*StorageData, error) + func (rd *RedisStorage) EncryptStorageData(data *StorageData) ([]byte, error) + func (rd RedisStorage) Delete(key string) error + func (rd RedisStorage) Exists(key string) bool + func (rd RedisStorage) List(prefix string, recursive bool) ([]string, error) + func (rd RedisStorage) Load(key string) ([]byte, error) + func (rd RedisStorage) Lock(key string) error + func (rd RedisStorage) Stat(key string) (certmagic.KeyInfo, error) + func (rd RedisStorage) Store(key string, value []byte) error + func (rd RedisStorage) Unlock(key string) error + type StorageData struct + Modified time.Time + Value []byte