(close conn-or-pool)Closes a connection or a pool resource.
Closes a connection or a pool resource.
(closed? conn-or-pool)Checks if a connection or pool resource has been closed.
Checks if a connection or pool resource has been closed.
(connected? conn)Checks if the provided connection resource is connected to redis.
Checks if the provided connection resource is connected to redis.
(connection pool)Retrieves a connection resource from pool. Returns a Jedis instance.
Retrieves a connection resource from pool. Returns a `Jedis` instance.
(init host options)Creates a new redis pool and returns a JedisPool instance.
Accepts a host string (host or host:port or tcp://host:port) and an (optional) options map containing the following keys:
Creates a new redis pool and returns a `JedisPool` instance.
Accepts a host string (host or host:port or tcp://host:port) and
an (optional) options map containing the following keys:
- max-total: Maximum number of connections that can be created at a given time
- max-idle: Maximum number of connections that can be idle in the pool
without being immediately evicted (closed)
- min-idle: Minimum number of connections ready for immediate use,
that remain in the pool
- max-wait-millis: Maximum time to wait in milliseconds if getting a resource
from a pool will block
- min-evictable-time-millis: Minimum amount of time a connection may sit idle in the pool
before it is eligible for eviction due to idle time(pool-config {:keys [max-total max-idle min-idle max-wait-millis
min-evictable-time-millis]
:as params})Initialise jedis pool configuration.
Accepts: A map containing any of the following keys:
Initialise jedis pool configuration.
Accepts:
A map containing any of the following keys:
- max-total: Maximum number of connections that can be created at a given time
- max-idle: Maximum number of connections that can be idle in the pool
without being immediately evicted (closed)
- min-idle: Minimum number of connections ready for immediate use,
that remain in the pool
- max-wait-millis: Maximum time to wait in milliseconds if getting a resource
from a pool will block
- min-evictable-time-millis: Minimum amount of time a connection may sit idle in the pool
before it is eligible for eviction due to idle timecljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |