o2system/cache

PHP Cache Handler Library

Installs: 1 698

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:package

v2.2.107 2020-06-02 22:49 UTC

This package is auto-updated.

Last update: 2024-11-25 23:16:53 UTC


README

alt text

Scrutinizer Code Quality Build Status PHP Composer Latest Stable Version Total Downloads License

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

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

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 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