定制 phpe/ccache 二次开发

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

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

phpe/ccache

最新稳定版本:v1.0

Composer 安装命令:

composer require phpe/ccache

包简介

Class for caching content

README 文档

README

About

A very light and simple class that caches content.

PHP 5 >= 5.3.0

Introduction

Create an object of CCache like $cache = new \phpe\cache\CCache($aPath);

Then you can create a cache file with $cache->Put('nameOfFile', 'contentInFile');

When you want to get the content of a cache file, call $cache->Get('nameOfFile');

You can also prune an item with $cache->Prune('nameOfFile'); or prune all items with $cache->PruneAll('nameOfFile');

Using anax-mvc

Make it apart of $Di like:

$di->setShared('cache', function() { $cache = new \phpe\cache\CCache('path to dir'); return $cache; });

Then can you, depenending where in the code you want to reach CLog, reach the class whit either $app or $di; $app->cache->Put('file', 'hello'); or $this->di->cache->Put('file', 'hello');

Scrutinizer Code Quality Code Coverage Build Status

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-16