Liking cljdoc? Tell your friends :D

crimson.pool


closeclj

(close conn-or-pool)

Closes a connection or a pool resource.

Closes a connection or a pool resource.
raw docstring

closed?clj

(closed? conn-or-pool)

Checks if a connection or pool resource has been closed.

Checks if a connection or pool resource has been closed.
raw docstring

connected?clj

(connected? conn)

Checks if the provided connection resource is connected to redis.

Checks if the provided connection resource is connected to redis.
raw docstring

connectionclj

(connection pool)

Retrieves a connection resource from pool. Returns a Jedis instance.

Retrieves a connection resource from pool. Returns a `Jedis` instance.
raw docstring

initclj

(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:

  • 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
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
raw docstring

pool-configclj

(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:

  • 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
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 time
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close