memcachir v1.0.1 Memcachir.Pool

Module that creates a pool of connections to the memcached server using poolboy

Summary

Functions

close(pool)
connection_pid(pool)
execute(pool, command, args, opts \\ [])
start_link(conn_opts \\ [])

Creates a pool of connections supervised by poolboy.

Connection Options

This is a superset of the connection options accepted by the Memcachir.Connection.start_link/1. The following list specifies the additional options.

  • :strategy - (atom) :fifo or :lifo. Determines whether checked in workers should be placed first or last in the line of available workers.

  • :size - (integer) the number of connections of the pool.

  • :max_overflow - (integer) maximum number of workers created if pool is empty.

  • :name - Name of the pool.