Package-level declarations

Reactive key-context-value store algorithms represented by the ContextualCache interface.

For convenience, adapters are provided:

  • cache caches calls to any suspend function,

  • batchingCache intercepts subsequent cache requests and batches them into a single larger request.

The following cache layers are available:

  • cachedInMemory stores results in-memory. When values are updated, it continues to show the old values while the new ones are being fetched,

  • expireAfter expires the values stored by the previous layer after some time has passed.

Types

Link copied to clipboard

Stores information temporarily to avoid unneeded network requests.

Functions

Link copied to clipboard

Cache implementation which collects cache requests into batches which are queried at the same time.

Link copied to clipboard

Cache implementation which calls a given transform suspending function.

Link copied to clipboard