You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2024. It is now read-only.
- Configuration options to set the Jedis pool connection and socket timeouts in the RedisFeatureStore.
- Support for 3 modes of RedisFeatureStore local cache behaviour; default evict, refresh and async refresh.
- A RedisFeatureStoreBuilder with it's own builder. Deprecated the old constructors for the RedisFeatureStore.
- Tests for the RedisFeatureStoreBuilder.
* Creates a new store instance that connects to Redis with the provided host, port, prefix, and cache timeout. Uses a default
@@ -38,7 +47,10 @@ public class RedisFeatureStore implements FeatureStore {
38
47
* @param port the port for the Redis connection
39
48
* @param prefix a namespace prefix for all keys stored in Redis
40
49
* @param cacheTimeSecs an optional timeout for the in-memory cache. If set to 0, no in-memory caching will be performed
50
+
* @deprecated as of X. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
@@ -50,20 +62,26 @@ public RedisFeatureStore(String host, int port, String prefix, long cacheTimeSec
50
62
* @param uri the URI for the Redis connection
51
63
* @param prefix a namespace prefix for all keys stored in Redis
52
64
* @param cacheTimeSecs an optional timeout for the in-memory cache. If set to 0, no in-memory caching will be performed
65
+
* @deprecated as of X. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
* Creates a new store instance that connects to Redis with the provided URI, prefix, cache timeout, and connection pool settings.
74
+
* Creates a new store instance that connects to Redis with the provided host, port, prefix, cache timeout, and connection pool settings.
60
75
*
61
76
* @param host the host for the Redis connection
62
77
* @param port the port for the Redis connection
63
78
* @param prefix a namespace prefix for all keys stored in Redis
64
79
* @param cacheTimeSecs an optional timeout for the in-memory cache. If set to 0, no in-memory caching will be performed
65
80
* @param poolConfig an optional pool config for the Jedis connection pool
81
+
* @deprecated as of X. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
@@ -78,14 +96,35 @@ public RedisFeatureStore(String host, int port, String prefix, long cacheTimeSec
78
96
* @param prefix a namespace prefix for all keys stored in Redis
79
97
* @param cacheTimeSecs an optional timeout for the in-memory cache. If set to 0, no in-memory caching will be performed
80
98
* @param poolConfig an optional pool config for the Jedis connection pool
99
+
* @deprecated as of X. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
* Configures the instance to use a "refresh after write" cache. This will not automatically evict stale values, allowing them to be returned if failures
170
+
* occur when updating them. Optionally set the cache to refresh values asynchronously, which always returns the previously cached value immediately.
171
+
* @param cacheTimeSecs the length of time in seconds, after a {@link FeatureRep} value is created that it should be refreshed.
172
+
* @param asyncRefresh makes the refresh asynchronous or not.
0 commit comments