opensavvy.cache.blocking¶
Blocking wrappers instantiated with the blocking helper.
Types¶
BlockingCache¶
class BlockingCache<Identifier, Failure, Value>
A blocking cache implementation.
BlockingContextualCache¶
class BlockingContextualCache<Identifier, Context, Failure, Value>
A blocking cache wrapper, which offers different results depending on the context.
Functions¶
blocking¶
fun <Identifier, Failure, Value> Cache<Identifier, Failure, Value>.blocking(): BlockingCache<Identifier, Failure, Value>
Converts an asynchronous cache into a blocking cache.
fun <Identifier, Context, Failure, Value> ContextualCache<Identifier, Context, Failure, Value>.blocking(): BlockingContextualCache<Identifier, Context, Failure, Value>
Converts an asynchronous contextual cache into a blocking cache.