Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 688 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 688 Bytes

DC\Cache - Caching interface

Installation

$ composer install dc/cache-memcache

Or add it to composer.json:

"require": {
	"dc/cache-memcache": "0.*",
}
$ composer install

Getting started

You'll need to provide a \DC\Cache\Implementations\Memcache\MemcacheConfiguration object when constructing, that will give us the connection options for your memcache session:

$cache = new \DC\Cache\Implementations\Memcache\Cache(
  \DC\Cache\Implementations\Memcache\MemcacheConfiguration('localhost', '2209'));

Otherwise, use it according to the interface.