/Yourls-Memcached

Memcached plugin for YOURLS

Primary LanguagePHPBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Yourls-Memcached

Memcached plugin for YOURLS

Use only in a multiple webservers environment, otherwise APC cache will be faster.

This plugin is based on "Yourls-APC-Cache" by Ian Barber (https://github.com/ianbarber)

Install

Copy memcached in the plugin directory (user/plugins/) and activate it in the admin.

Requirements

One Memcached server (running) and Memcached PHP extension (http://pecl.php.net/package/memcached)

Default configuration

Memcached IP: 127.0.0.1 (localhost)

Memcached port: 11211

For custom configuration, add in your config.php

define("MEMCACHED_SALT", ''); // Salt (for multiple instances, must be unique, default is URL)
define("MEMCACHED_IP", '127.0.0.1'); // Memcached IP
define("MEMCACHED_PORT", '11211'); // Memcached Port

TODO

Support multiple memcached servers