Skip to content

A lightweight php filesystem caching class, used in FeatherBB

License

Notifications You must be signed in to change notification settings

featherbb/cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%