class LaunchDarkly::Impl::FeatureStoreClientWrapper
Provides additional behavior that the client requires before or after feature store operations. Currently this just means sorting the data set for init(). In the future we may also use this to provide an update listener capability.
Public Class Methods
new(store)
click to toggle source
# File lib/ldclient-rb/impl/store_client_wrapper.rb, line 14 def initialize(store) @store = store end
Public Instance Methods
all(kind)
click to toggle source
# File lib/ldclient-rb/impl/store_client_wrapper.rb, line 26 def all(kind) @store.all(kind) end
delete(kind, key, version)
click to toggle source
# File lib/ldclient-rb/impl/store_client_wrapper.rb, line 34 def delete(kind, key, version) @store.delete(kind, key, version) end
get(kind, key)
click to toggle source
# File lib/ldclient-rb/impl/store_client_wrapper.rb, line 22 def get(kind, key) @store.get(kind, key) end
init(all_data)
click to toggle source
# File lib/ldclient-rb/impl/store_client_wrapper.rb, line 18 def init(all_data) @store.init(FeatureStoreDataSetSorter.sort_all_collections(all_data)) end
initialized?()
click to toggle source
# File lib/ldclient-rb/impl/store_client_wrapper.rb, line 38 def initialized? @store.initialized? end
stop()
click to toggle source
# File lib/ldclient-rb/impl/store_client_wrapper.rb, line 42 def stop @store.stop end
upsert(kind, item)
click to toggle source
# File lib/ldclient-rb/impl/store_client_wrapper.rb, line 30 def upsert(kind, item) @store.upsert(kind, item) end