RedisPromptCache

constructor(client: RedisClient, prefix: String, ttl: Duration)(source)

Parameters

client

The Redis client to use for connecting to Redis


constructor(client: RedisClient, prefix: String, ttl: Duration)(source)

Java-compatible constructor that accepts java.time.Duration for the TTL parameter.

Parameters

client

The Redis client to use for connecting to Redis

prefix

The prefix for cache keys

ttl

The time-to-live for cache entries as java.time.Duration