PHP Cache Management Library
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json

README.md

O2System Cache

O2System Cache is an Open Source Cache Management Adapters Library. This allows the O2System Framework to integrate with some of the most popular cache storage engines. All but file-based caching require specific server requirements, and a Fatal Exception will be thrown if server requirements are not met. O2System Cache is build for working more powerful within O2System Framework, but also can be used for integrated with others as standalone version with limited features.

O2System Cache is written based on PSR-6: Caching Interface and PSR-16: Common Interface for Caching Libraries.

Supported Storage Engines Adapters

Engine 5.6+ 7.0+  
APC Yes No http://php.net/apc
APCu Yes Yes http://php.net/apcu
File Yes Yes http://php.net/file
Memcache Yes Yes http://php.net/memcache
Memcached Yes Yes http://php.net/memcached
Redis Yes Yes http://redis.io
Wincache Yes Yes http://php.net/wincache
XCache Yes No https://xcache.lighttpd.net/
Zend OPCache Yes Yes http://php.net/opcache

Composer Installation

The best way to install O2System Cache is to use Composer

composer require o2system/cache

Packagist: https://packagist.org/packages/o2system/cache

Usage

use O2System\Cache;

$cache = new Cache\Adapters\Opcache\ItemPool();

if( $cache->isConnected() ) {
    // Save cache
    $cache->save( new Cache\Item( 'cacheKeyName', 'This is cache content, support any type of data', 300 ) );
    // Get cache
    echo $cache->getItem( 'cacheKeyName' )->get();
}

Output: This is cache content, support any type of data

Documentation is available on this repository wiki or visit this repository github page.

Ideas and Suggestions

Please kindly mail us at o2system.framework@gmail.com

Bugs and Issues

Please kindly submit your issues at Github so we can track all the issues along development and send a pull request to this repository.

System Requirements

Credits

Role Name
Founder and Lead Projects Steeven Andrian Salim
Documentation Steeven Andrian Salim
Github Pages Designer Teguh Rianto

Supported By