Do a "join" on two stores: look up from the first, and use that value as the key in the next A factory method for com.twitter.storehaus.ComposedStore.
Do a "join" on two stores: look up from the first, and use that value as the key in the next A factory method for com.twitter.storehaus.ComposedStore. See also ReadableStore.convert if you need to change the value or key before the andThen
Returns a new ReadableStore[Any, V] that always returns the supplied value V.
Lazily change the key and value for a store.
Lazily change the key and value for a store. This does not change the representation, only alters before going in or out of the store.
Due to the variance notations, this suffices for an empty store of any K,V type
Adds enrichment methods to ReadableStore This allows you to do: store.mapValues, for instance.
Adds enrichment methods to ReadableStore This allows you to do: store.mapValues, for instance. Access this in your code by doing:
import ReadableStore.enrich
Returns a ReadableStore[K, V] that attempts reads out of the supplied Seq[ReadableStore[K, V]] in order and returns the first successful value that passes the supplied predicate.
Returns a new ReadableStore[K, V] that queries all of the stores and returns the first values that are not exceptions.
Returns a new ReadableStore[K, V] that queries all of the stores and returns the first values that are not exceptions and that are present (ie, not equivalent to Future.None).
Treat a Function1 like a ReadableStore
Treat a function returning a Future[Option[V]] as the get method of a ReadableStore
Factory method to create a ReadableStore from an IndexedSeq.
Factory method to create a ReadableStore from a Map.
Treat a PartialFunction like a ReadableStore
Returns a new ReadableStore[K, V] that queries all of the stores and returns the first values that are not exceptions and that pass the supplied predicate.
unpivot or uncurry a ReadableStore which has a value that is a Map.
unpivot or uncurry a ReadableStore which has a value that is a Map. Often it is more efficient to pack values into inner maps, especially when you have very sparse stores. This allows you to work with such a packed store as though it was unpacked
Returns a new ReadableStore that caches reads from the underlying store using the supplied immutable cache.
Returns a new ReadableStore that caches reads from the underlying store using the supplied mutable cache.
Returns a ReadableStore[K, V] that attempts reads from a store multiple times until a predicate is met.
Returns a ReadableStore[K, V] that attempts reads from a store multiple times until a predicate is met. The iterable of backoffs defines the time interval between two read attempts. If there is not read result satisfying the given predicate after all read attempts, a NotFoundException will be thrown.
Holds various factory and transformation functions for ReadableStore instances