Skip to content

Latest commit

History

56 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

alt text

Scrutinizer Code QualityBuild StatusPHP ComposerLatest Stable VersionTotal DownloadsLicense

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

Engine7.2+
APCuYeshttp://php.net/apcu
FileYeshttp://php.net/file
MemcacheYeshttp://php.net/memcache
MemcachedYeshttp://php.net/memcached
RedisYeshttp://redis.io
WincacheYeshttp://php.net/wincache

APC and XCache has been deprecated, OPCache has been merged into APCu.

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

useO2System\Cache;
$cache = newCache\Adapters\Opcache\ItemPool();
if( $cache->isConnected() ) {
// Save cache$cache->save( newCache\Item( 'cacheKeyName', 'This is cache content, support any type of data', 300 ) );
// Get cacheecho$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 contact@o2system.id

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

About

PHP Cache Management Library

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages