Package-level declarations
Functions
Link copied to clipboard
Link copied to clipboard
fun <T : Any> Storage.Companion.Redis(redis: RedisCommands<String, T>, ttl: Duration = ofHours(1)): Storage<T>
Redis-backed storage implementation. You probably want to use one of the builder functions instead of this
fun <T : Any> Storage.Companion.Redis(uri: Uri, codec: RedisCodec<String, T>, ttl: (T) -> Duration = { ofHours(1) }): Storage<T>
Connect to Redis using custom codec
inline fun <T : Any> Storage.Companion.Redis(uri: Uri, autoMarshalling: AutoMarshalling = Moshi, noinline ttl: (T) -> Duration = { ofHours(1) }): Storage<T>
Connect to Redis using Automarshalling
Link copied to clipboard
fun <T : Any> Storage.Companion.RedisWithDynamicTtl(redis: RedisCommands<String, T>, ttl: (T) -> Duration = { ofHours(1) }): Storage<T>
Redis-backed storage implementation with custom TTL function.