Download the PHP package apix/cache without Composer
On this page you can find all versions of the php package apix/cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package cache
Short Description A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache taggging and indexing to Redis, Memcached, PDO/SQL, APC and other adapters.
License BSD-3-Clause
Homepage https://github.com/frqnck/apix-cache
Informations about the package cache
Apix Cache, cache-tagging for PHP
Apix Cache is a generic and thin cache wrapper with a PSR-6 interface to various caching backends and emphasising cache tagging and indexing.
Cache-tagging allows to find/update all data items with one or more given tags. Providing, for instance, a batch delete of all obsolete entries matching a speficic tag such as a version string.
- Fully unit-tested and compliant with PSR-1, PSR-2, PSR-4 and PSR-6 (Cache).
- Continuously integrated
- against PHP
5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3and HHVM, - and against
APC
,APCu
,Redis
,MongoDB
,Sqlite
,MySQL
,PgSQL
andMemcached
, ... - supports a range of serializers:
igBinary
,msgpack
,json
,php
, ...
- against PHP
- Extendable, additional extensions are available:
- apix/simple-cache provides a SimpleCache (PSR-16) interface.
- More contributions will be linked here.
- Available as a Composer
and as a PEARpackage.
⇄ create an issue.
Cache backends
Currently, the following cache store are supplied:
APCu
and APC with tagging support,PhpRedis
extension with tagging support,mongo
extension with tagging support,Memcached
extension with indexing, tagging and namespacing support,- and relational databases using PDO with tagging support:
- Files based with tagging support,
- Runtime, in-memory array storage.
Factory usage (PSR-Cache wrapper)
Basic usage (Apix native)
You can also use the folowing in your use cases:
Advanced usage
Options shared by all the backends
Redis specific
* see PhpRedis for instantiation usage.
Memcached specific
The serialzer auto
(default) is igBinary
if available, then msgpack
if available, then php
otherwise.
*** see Memcached for instantiation details.
MongoDB specific
PDO specific
The preflight
option will create on-the-fly the required tables if these are mssing.
Once these tables exist, set preflight
to false
in order to avoid the extraneous checks.
Filesystem specific
- Files: the cache metadata (expiration time and tags) are stored in the cache file directly.
- Directory: the metadata are stored separately from the cached data.
Installation
This project adheres to Semantic Versioning and can be installed using composer:
$ composer require apix/cache:^1.3
All notable changes to this project are documented in its CHANGELOG.
License
This work is licensed under the New BSD license -- see the LICENSE for the full details.
Copyright (c) 2010-2016 Franck Cassedanne