redcode/aerospike-cache-provider

Adds aerospike provider to use it through the doctrine/cache

0.1.0 2015-10-22 16:45 UTC

This package is not auto-updated.

Last update: 2024-10-26 19:05:19 UTC


README

Build Status

This is an implementation of Doctrine\Common\Cache\CacheProvider for Aerospike.

It allows you to use aerospike connection in projects which are based on the doctrine/cache

Installation

The easiest way to install this library is with Composer using the following command:

$ composer require redcode/aerospike-cache-provider

How does it work?

// pre-configured Aerospike connection
$aerospike = new \Aerospike();
$cache = new AerospikeCache($aerospike);
$cache->save('test', 'value', 60);
$value = $cache->fetch('test');