Skip to content

yieldbot/catbox-memcached2

Repository files navigation

catbox-memcached2

NPM Build Status

Memcached adapter for catbox. Supports events, more than 30 days ttl and ready to use for production.

Installation

npm install catbox-memcached2

Usage

Options

  • location - Memcached server location. Default localhost:11211
  • partition - Cache key prefix. Catbox sets partition to catbox if it is not defined so use NONE for no partition.
  • poolSize - Connection pool size. Default 10
  • minTimeout - Connection pool retry min delay before retrying. Default 0
  • retries - Connection pool retries to pull connection from pool. Default 0
  • reconnect - Reconnect delay after server is dead. Default 1000 ms
  • failures - Number of failure before marked server as dead. Default 1
  • retry - Retry delay when server has an error. Default 1000 ms
  • idle - Idle time before removing connection from pool. Default 60000 ms
  • flags - Flags
    • bypassCacheOnConnError - Bypass cache if there is a connection error. Default false
    • debug - List of flags (['events']) for debugging. Default []

See catbox client and memcached for more details and options.

License

Licensed under The MIT License (MIT)
For the full copyright and license information, please view the LICENSE.txt file.