2017 © Pedro Peláez
 

library localcache

php cache in apc, xcache files, etc

image

orbisnull/localcache

php cache in apc, xcache files, etc

  • Wednesday, April 17, 2013
  • by orbisnull
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Warning Repository is outdated and abandoned! :no_entry_sign: No active development or any support! :skull_and_crossbones:, (*1)

LocalCache

Parts of this code are based on and/or adapted from original work by [Adam King] (https://github.com/agking/php-cache-class), (*2)

A simple PHP composer module, using the singleton design pattern to handle caching data., (*3)

Currently supports APC, but may be adapt to 'eaccelerator', 'xcache', 'file', etc., (*4)

$cache = LocalCache::getInstance();
if (false !== ($data = $cache->get($id))) {
    $data = get_data_from_db($id);
    $cache->set($id, $data);
}
return $data;

The data is automatically serialize/unserialize in LocalCache;, (*5)

The Versions

17/04 2013

dev-master

9999999-dev

php cache in apc, xcache files, etc

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.4.0