Module: LaunchDarkly::Interfaces::DataSystem::ReadOnlyStore

Included in:
LaunchDarkly::Impl::DataStore::InMemoryFeatureStoreV2
Defined in:
lib/ldclient-rb/interfaces/data_system.rb

Overview

ReadOnlyStore represents a read-only store interface for retrieving data.

This type is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is in early access. If you want access to this feature please join the EAP. launchdarkly.com/docs/sdk/features/data-saving-mode

Instance Method Summary collapse

Instance Method Details

#all(kind) ⇒ Hash

Retrieves all items of a given kind.

Parameters:

Returns:

  • (Hash)

    Hash of keys to items (excluding deleted items)

Raises:

  • (NotImplementedError)


625
626
627
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 625

def all(kind)
  raise NotImplementedError, "#{self.class} must implement #all"
end

#get(kind, key) ⇒ Hash?

Retrieves an item by kind and key.

Parameters:

Returns:

  • (Hash, nil)

    The item, or nil if not found or deleted

Raises:

  • (NotImplementedError)


615
616
617
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 615

def get(kind, key)
  raise NotImplementedError, "#{self.class} must implement #get"
end

#initialized?Boolean

Returns whether the store has been initialized.

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


634
635
636
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 634

def initialized?
  raise NotImplementedError, "#{self.class} must implement #initialized?"
end