RedisUtils
Factory methods and extension functions for creating and using Redis connections via Jedis.
Pool sizing and wait time can be configured via system properties or method parameters. The default Redis URL is read from the REDIS_URL environment variable.
Types
Properties
System property key for the maximum number of idle connections.
System property key for the maximum connection pool size.
System property key for the maximum wait time (in seconds) when borrowing a connection.
System property key for the minimum number of idle connections.
Functions
Creates a new pooled RedisClient with the given configuration.
Suspending variant of withNonNullRedis. Creates a short-lived connection, executes a suspending block, and closes it. Returns null if the connection fails.
Suspending variant of withNonNullRedisPool. Executes a suspending block with this RedisClient, returning null if the connection fails.
Suspending variant of withRedisPool. Executes a suspending block with this RedisClient, passing null if the connection fails.