Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.52 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.52 KB

Aerospike cache adapters for PHP

Latest Stable Version Build Status Coverage Status

This component provides a PSR-6 implementation of Aerospike for adding cache to your applications.

Installation

composer require lmc/aerospike-cache

Usage

$aerospike = new \Aerospike(['hosts' => [['addr' => '127.0.0.1', 'port' => 3000]]]);
$aerospikeCache = new AerospikeCache($aerospike, 'aerospkeNamespace');

AerospikeCache uses PSR-6 caching interface for manipulation with the data.
The AerospikeCache also comes bundled with Symfony Cache adapter for DoctrineCache

Creating a new Aerospike instance will immediately connect to the aerospike server, which might take a while and it should be in lazy abstraction.

Changelog

For latest changes see CHANGELOG.md file. We follow Semantic Versioning.

Contributing and development

Install dependencies

composer install

Run tests

For each pull-request, unit tests as well as static analysis and codestyle checks must pass.

To run all those checks execute:

composer all