Configuration

Configuration keys for the Solar_Cache_Adapter_Memcache class.

active

  • (bool) Whether or not the cache should be active at instantiation.

  • Default: true

life

  • (int) The lifetime of each cache entry in seconds.

  • Default: 0

prefix

  • (string) A prefix to place in front of every cache entry key; e.g., use this to deconflict between identical cache keys in caches shared among different domains or environments.

  • Default: null

host

  • (string) The memcached host name, default 'localhost'.

  • Default: 'localhost'

port

  • (int) The memcached port number, default 11211.

  • Default: 11211

timeout

  • (int) The timeout before the server connection is considered a miss, in seconds. Default is 1 second, and should not really be changed for reasons other than testing purposes.

  • Default: 1

pool

  • (array) An array of memcache connections to connect to in a multi-server pool. Each connection should be represented by an array with the following keys: host, port, persistent, weight, timeout, retry_interval, status and failure_callback. The pool is empty by default, and will only be used instead of a single-server connection if non-empty.

  • Default: array ( )



Local