Companion

Properties

Link copied to clipboard

A supplier providing a strategy which exclusively uses cache to fetch entities. See CacheEntitySupplier for more details.

Link copied to clipboard

A supplier providing a strategy which will first operate on the cache supplier. When an entity is not present from cache it will be fetched from cachingRest instead which will update cache with fetched elements. Operations that return flows will only fall back to rest when the returned flow contained no elements.

Link copied to clipboard

A supplier providing a strategy which will first operate on the cache supplier. When an entity is not present from cache it will be fetched from rest instead. Operations that return flows will only fall back to rest when the returned flow contained no elements.

Link copied to clipboard

A supplier providing a strategy which exclusively uses REST calls to fetch entities. fetched entities are stored in Kord's cache. See StoreEntitySupplier for more details.

Link copied to clipboard

A supplier providing a strategy which exclusively uses REST calls to fetch entities. See RestEntitySupplier for more details.

Functions

Link copied to clipboard
operator fun <T : EntitySupplier> invoke(supplier: (Kord) -> T): EntitySupplyStrategy<T>

Create an EntitySupplyStrategy from the given supplier.