RedisWithDynamicTtl

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.