定制 o2system/cache 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

o2system/cache

Composer 安装命令:

composer require o2system/cache

包简介

PHP Cache Handler Library

README 文档

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

Engine 7.2+  
APCu Yes http://php.net/apcu
File Yes http://php.net/file
Memcache Yes http://php.net/memcache
Memcached Yes http://php.net/memcached
Redis Yes http://redis.io
Wincache Yes http://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

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

统计信息

  • 总下载量: 1.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固