http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-connect-storage-redis
/
org.http4k.connect.storage
/
RedisWithDynamicTtl
Redis
With
Dynamic
Ttl
fun
<
T
:
Any
>
Storage.Companion
.
RedisWithDynamicTtl
(
redis
:
RedisCommands
<
String
,
T
>
,
ttl
:
(
T
)
->
Duration
=
{ ofHours(1) }
)
:
Storage
<
T
>
(
source
)
Redis-backed storage implementation with custom TTL function.