@@ -23,7 +23,7 @@ class Config
2323 # @option opts [Float] :read_timeout (10) See {#read_timeout}.
2424 # @option opts [Float] :connect_timeout (2) See {#connect_timeout}.
2525 # @option opts [Object] :cache_store See {#cache_store}.
26- # @option opts [Object] :feature_store See {#feature_store }.
26+ # @option opts [Object] :data_store See {#data_store }.
2727 # @option opts [Boolean] :use_ldd (false) See {#use_ldd?}.
2828 # @option opts [Boolean] :offline (false) See {#offline?}.
2929 # @option opts [Float] :poll_interval (30) See {#poll_interval}.
@@ -35,8 +35,6 @@ class Config
3535 # @option opts [Float] :user_keys_flush_interval (300) See {#user_keys_flush_interval}.
3636 # @option opts [Boolean] :inline_users_in_events (false) See {#inline_users_in_events}.
3737 # @option opts [Object] :data_source See {#data_source}.
38- # @option opts [Object] :update_processor Obsolete synonym for `data_source`.
39- # @option opts [Object] :update_processor_factory Obsolete synonym for `data_source`.
4038 #
4139 def initialize ( opts = { } )
4240 @base_uri = ( opts [ :base_uri ] || Config . default_base_uri ) . chomp ( "/" )
@@ -48,7 +46,7 @@ def initialize(opts = {})
4846 @flush_interval = opts [ :flush_interval ] || Config . default_flush_interval
4947 @connect_timeout = opts [ :connect_timeout ] || Config . default_connect_timeout
5048 @read_timeout = opts [ :read_timeout ] || Config . default_read_timeout
51- @feature_store = opts [ :feature_store ] || Config . default_feature_store
49+ @data_store = opts [ :data_store ] || Config . default_data_store
5250 @stream = opts . has_key? ( :stream ) ? opts [ :stream ] : Config . default_stream
5351 @use_ldd = opts . has_key? ( :use_ldd ) ? opts [ :use_ldd ] : Config . default_use_ldd
5452 @offline = opts . has_key? ( :offline ) ? opts [ :offline ] : Config . default_offline
@@ -59,9 +57,7 @@ def initialize(opts = {})
5957 @user_keys_capacity = opts [ :user_keys_capacity ] || Config . default_user_keys_capacity
6058 @user_keys_flush_interval = opts [ :user_keys_flush_interval ] || Config . default_user_keys_flush_interval
6159 @inline_users_in_events = opts [ :inline_users_in_events ] || false
62- @data_source = opts [ :data_source ] || opts [ :update_processor ] || opts [ :update_processor_factory ]
63- @update_processor = opts [ :update_processor ]
64- @update_processor_factory = opts [ :update_processor_factory ]
60+ @data_source = opts [ :data_source ]
6561 end
6662
6763 #
@@ -98,9 +94,9 @@ def stream?
9894 #
9995 # Whether to use the LaunchDarkly relay proxy in daemon mode. In this mode, the client does not
10096 # use polling or streaming to get feature flag updates from the server, but instead reads them
101- # from the {#feature_store feature store}, which is assumed to be a database that is populated by
97+ # from the {#data_store data store}, which is assumed to be a database that is populated by
10298 # a LaunchDarkly relay proxy. For more information, see ["The relay proxy"](https://docs.launchdarkly.com/v2.0/docs/the-relay-proxy)
103- # and ["Using a persistent feature store"](https://docs.launchdarkly.com/v2.0/docs/using-a-persistent-feature-store).
99+ # and ["Using a persistent data store"](https://docs.launchdarkly.com/v2.0/docs/using-a-persistent-feature-store).
104100 #
105101 # All other properties related to streaming or polling are ignored if this option is set to true.
106102 #
@@ -176,13 +172,13 @@ def offline?
176172 #
177173 # A store for feature flags and related data. The client uses it to store all data received
178174 # from LaunchDarkly, and uses the last stored data when evaluating flags. Defaults to
179- # {InMemoryFeatureStore }; for other implementations, see {LaunchDarkly::Integrations}.
175+ # {InMemoryDataStore }; for other implementations, see {LaunchDarkly::Integrations}.
180176 #
181- # For more information, see ["Using a persistent feature store"](https://docs.launchdarkly.com/v2.0/docs/using-a-persistent-feature-store).
177+ # For more information, see ["Using a persistent data store"](https://docs.launchdarkly.com/v2.0/docs/using-a-persistent-feature-store).
182178 #
183- # @return [LaunchDarkly::Interfaces::FeatureStore ]
179+ # @return [LaunchDarkly::Interfaces::DataStore ]
184180 #
185- attr_reader :feature_store
181+ attr_reader :data_store
186182
187183 #
188184 # True if all user attributes (other than the key) should be considered private. This means
@@ -251,12 +247,6 @@ def offline?
251247 #
252248 attr_reader :data_source
253249
254- # @deprecated This is replaced by {#data_source}.
255- attr_reader :update_processor
256-
257- # @deprecated This is replaced by {#data_source}.
258- attr_reader :update_processor_factory
259-
260250 #
261251 # The default LaunchDarkly client configuration. This configuration sets
262252 # reasonable defaults for most users.
@@ -361,11 +351,11 @@ def self.default_use_ldd
361351 end
362352
363353 #
364- # The default value for {#feature_store }.
365- # @return [LaunchDarkly::Interfaces::FeatureStore ] an {InMemoryFeatureStore }
354+ # The default value for {#data_store }.
355+ # @return [LaunchDarkly::Interfaces::DataStore ] an {InMemoryDataStore }
366356 #
367- def self . default_feature_store
368- InMemoryFeatureStore . new
357+ def self . default_data_store
358+ InMemoryDataStore . new
369359 end
370360
371361 #
0 commit comments