RedixCluster v1.1.0 RedixCluster.Pool View Source

RedixCluster.Pool

The pool supervisor, which uses poolboy to manage a pool of worker connections to Redis.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Callback invoked to start the supervisor and during hot code upgrades

Link to this section Types

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function get_env(key, default \\ nil) View Source

Callback invoked to start the supervisor and during hot code upgrades.

Developers typically invoke Supervisor.init/2 at the end of their init callback to return the proper supervision flags.

Callback implementation for Supervisor.init/1.

Link to this function new_pool(conn, host, port) View Source
new_pool(conn(), charlist(), integer()) :: {:ok, atom()} | {:error, atom()}
Link to this function register_worker_connection(pool_name) View Source
register_worker_connection(atom()) :: :ok
Link to this function stop_redis_pool(pool_name) View Source
stop_redis_pool(atom()) :: :ok | {:error, error}
when error: :not_found | :simple_one_for_one | :running | :restarting