lmc / aerospike-cache
Aerospike PHP cache adapter for Symfony/Cache (PSR-6 and PSR-16) and Doctrine/Cache
Installs: 16 546
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 5
Open Issues: 1
Requires
- php: ^7.1
- aerospike/aerospike-client-php: ^7.3.0
- symfony/cache: ^4.3 || ^5.0
Requires (Dev)
- doctrine/cache: ^1.8
- lmc/coding-standard: ^1.3
- phpstan/phpstan: ^0.12.9
- phpstan/phpstan-phpunit: ^0.12.6
- phpunit/phpunit: ^7.5
Suggests
- doctrine/cache: Allows use of the DoctrineSymfonyAdapter for the AerospikeCache compatibility with Doctrine Cache
Provides
This package is auto-updated.
Last update: 2024-10-24 19:24:02 UTC
README
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