@@ -161,24 +161,12 @@ def new_feature_store(url: str='redis://localhost:6379/0',
161
161
:param url: the URL of the Redis host; defaults to ``DEFAULT_URL``
162
162
:param prefix: a namespace prefix to be prepended to all Redis keys; defaults to
163
163
``DEFAULT_PREFIX``
164
- :param max_connections: the maximum number of Redis connections to keep in the
165
- connection pool; defaults to ``DEFAULT_MAX_CONNECTIONS``. This
166
- parameter will later be dropped in favor of setting
167
- redis_opts['max_connections']
168
164
:param caching: specifies whether local caching should be enabled and if so,
169
165
sets the cache properties; defaults to :func:`ldclient.feature_store.CacheConfig.default()`
170
166
:param redis_opts: extra options for initializing Redis connection from the url,
171
- see `redis.connection.ConnectionPool.from_url` for more details. Note that
172
- if you set max_connections, this will take precedence over the
173
- deprecated max_connections parameter.
167
+ see `redis.connection.ConnectionPool.from_url` for more details.
174
168
"""
175
169
176
- # WARN(deprecated): Remove the max_connection parameter from
177
- # this signature and clean up this bit of code.
178
- if 'max_connections' not in redis_opts :
179
- redis_opts = redis_opts .copy ()
180
- redis_opts ['max_connections' ] = max_connections
181
-
182
170
core = _RedisFeatureStoreCore (url , prefix , redis_opts )
183
171
wrapper = CachingStoreWrapper (core , caching )
184
172
wrapper ._core = core # exposed for testing
@@ -208,22 +196,10 @@ def new_big_segment_store(url: str='redis://localhost:6379/0',
208
196
:param url: the URL of the Redis host; defaults to ``DEFAULT_URL``
209
197
:param prefix: a namespace prefix to be prepended to all Redis keys; defaults to
210
198
``DEFAULT_PREFIX``
211
- :param max_connections: the maximum number of Redis connections to keep in the
212
- connection pool; defaults to ``DEFAULT_MAX_CONNECTIONS``. This
213
- parameter will later be dropped in favor of setting
214
- redis_opts['max_connections']
215
199
:param redis_opts: extra options for initializing Redis connection from the url,
216
- see `redis.connection.ConnectionPool.from_url` for more details. Note that
217
- if you set max_connections, this will take precedence over the
218
- deprecated max_connections parameter.
200
+ see `redis.connection.ConnectionPool.from_url` for more details.
219
201
"""
220
202
221
- # WARN(deprecated): Remove the max_connection parameter from
222
- # this signature and clean up this bit of code.
223
- if 'max_connections' not in redis_opts :
224
- redis_opts = redis_opts .copy ()
225
- redis_opts ['max_connections' ] = max_connections
226
-
227
203
return _RedisBigSegmentStore (url , prefix , redis_opts )
228
204
229
205
class Files :
0 commit comments