package
0.0.0-20190708190747-0933bec82397
Repository: https://github.com/launchdarkly/go-client.git
Documentation: pkg.go.dev

# Functions

CacheTTL creates an option for NewRedisFeatureStoreWithDefaults to set the amount of time that recently read or updated items should remain in an in-memory cache.
HostAndPort creates an option for NewRedisFeatureStoreWithDefaults to specify the Redis host address as a hostname and port.
Logger creates an option for NewDynamoDBFeatureStore, to specify where to send log output.
NewRedisFeatureStore constructs a new Redis-backed feature store connecting to the specified host and port.
NewRedisFeatureStoreFromUrl constructs a new Redis-backed feature store connecting to the specified URL.
NewRedisFeatureStoreWithDefaults constructs a new Redis-backed feature store By default, it uses DefaultURL as the Redis address, DefaultPrefix as the prefix for all keys, DefaultCacheTTL as the duration for in-memory caching, and a default connection pool configuration (see package description for details).
NewRedisFeatureStoreWithPool constructs a new Redis-backed feature store with the specified redigo pool configuration.
Pool creates an option for NewRedisFeatureStoreWithDefaults to make the feature store use a specific connection pool configuration.
Prefix creates an option for NewRedisFeatureStoreWithDefaults to specify a string that should be prepended to all Redis keys used by the feature store.
URL creates an option for NewRedisFeatureStoreWithDefaults to specify the Redis host URL.

# Constants

DefaultCacheTTL is the default amount of time that recently read or updated items will be cached in memory, if you use NewRedisFeatureStoreWithDefaults.
DefaultPrefix is a string that is prepended (along with a colon) to all Redis keys used by the feature store.
DefaultURL is the default URL for connecting to Redis, if you use NewRedisFeatureStoreWithDefaults.

# Structs

RedisFeatureStore is a Redis-backed feature store implementation.

# Interfaces

FeatureStoreOption is the interface for optional configuration parameters that can be passed to NewRedisFeatureStoreWithDefaults.