2017 © Pedro Peláez
 

library ccache

Class for caching content

image

phpe/ccache

Class for caching content

  • Sunday, March 1, 2015
  • by phphille
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CCache

About

A very light and simple class that caches content., (*1)

PHP 5 >= 5.3.0

Introduction

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

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

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

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

Using anax-mvc

Make it apart of $Di like:, (*6)

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

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');, (*8)

Scrutinizer Code Quality Code Coverage Build Status, (*9)

The Versions

01/03 2015

dev-master

9999999-dev

Class for caching content

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Philip Persson

caching performance

16/02 2015

v1.0

1.0.0.0

Class for caching content

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Philip Persson

caching performance