Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.
/ php-cache-class Public archive

A lightweight php filesystem caching class, used in FeatherBB

License

Notifications You must be signed in to change notification settings

peloyeje/php-cache-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Cache Class

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages