Description
Apix-SimpleCache provides PSR-16 to Apix-Cache permitting easy caching and invalidation...
Apix-SimpleCache alternatives and similar libraries
Based on the "Caching" category.
Alternatively, view Apix-SimpleCache alternatives based on common mentions on social networks and blogs.
-
scrapbook
PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APC(u), SQL and additional capabilities (e.g. transactions, stampede protection) built on top. -
APIx Cache
A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache tagging and indexing. -
Cake Cache
[READ-ONLY] Easy to use Caching library with support for multiple caching backends. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp -
Metaphore
Cache slam defense using a semaphore to prevent dogpile effect. -
Simple Cache Class
:zap: Simple Cache Abstraction Layer for PHP -
Alternative PHP Cache (APC)
Alternative PHP Cache -
PHP Simple Cache
Simple PHP object caching base on temp file (no additional PHP extension require)
Static code analysis for 29 languages.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Apix-SimpleCache or a related project?
README
Apix-SimpleCache, the PSR-16 extension to [Apix-Cache](//github.com/apix/cache)
Apix-SimpleCache provides PSR-16 to [Apix-Cache](//github.com/apix/cache) permitting easy caching and invalidation...
- Fully unit-tested and compliant with PSR-1, PSR-2, PSR-4 and PSR-16.
- Continuously integrated with PHP 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3
and HHVM.
⇄ [Pull requests](//github.com/apix/simple-cache/blob/master/.github/CONTRIBUTING.md) and ★ Stars are always welcome. For bugs and feature request, please [create an issue](//github.com/apix/simple-cache/issues/new).
Basic usage
use Apix\SimpleCache;
$client = new \Redis();
#$client = new \PDO('sqlite:...'); // Any supported client object e.g. Memcached, MongoClient, ...
#$client = new Cache\Files($options); // or one that implements Apix\Cache\Adapter
#$client = 'apc'; // or an adapter name (string) e.g. "APC", "Runtime"
#$client = new MyArrayObject(); // or even a plain array() or \ArrayObject.
$cache = SimpleCache\Factory::getPool($client); // without tagging support
#$cache = SimpleCache\Factory::getTaggablePool($client); // with tagging
if ( !$cache->has('wibble_id') ) {
$data = compute_slow_and_expensive_stuff();
$cache->set('wibble_id', $data);
}
return $cache->get('wibble_id');
Installation
This project adheres to Semantic Versioning and can be installed using composer:
$ composer require apix/simple-cache:1.0.*
All notable changes to this project are documented in its [CHANGELOG](CHANGELOG.md).
License
This work is licensed under the New BSD license -- see the [LICENSE](LICENSE.txt) for the full details.Copyright (c) 2010-2017 Franck Cassedanne
*Note that all licence references and agreements mentioned in the Apix-SimpleCache README section above
are relevant to that project's source code only.