Skip to content

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

PHP Cache Class v.1.0

A lightweight php caching class, massive rewrite of cosenary's cache class (link) Supported caches : filesystem Used for instance in FeatherBB

Requirements

  • PHP 5.3

Changelog

##v.1.0

  • Code rewrite : settings storage, internal cache handling
  • Add increment, decrement functions

Let's see some code

$cache = new Cache(array('name' => 'filecache',
'path' => 'cache/',
'extension' => '.cache'));
$cache->store('user', array(info));
$cache->retrieve('user');
// Overwrite
$cache->store('user', array(info2));
// Get settings
$cache->getSettings();
// Purge cache
$cache->flush();

Credits

Thanks to cosenary for parts of the code logic

About

A lightweight php filesystem caching class, used in FeatherBB

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages