File tree Expand file tree Collapse file tree 1 file changed +36
-2
lines changed
Expand file tree Collapse file tree 1 file changed +36
-2
lines changed Original file line number Diff line number Diff line change 1- # php-cache-class
2- A lightweight php filesystem caching class, used in FeatherBB
1+ # PHP Cache Class v.1.0
2+ A lightweight php caching class, massive rewrite of cosenary's cache class (link)
3+ ** Supported caches :** filesystem
4+ Used for instance in [ FeatherBB] ( http://featherbb.org )
5+
6+ # Requirements
7+ * PHP 5.3
8+
9+ # Changelog
10+ ##v.1.0
11+ * Code rewrite : settings storage, internal cache handling
12+ * Add increment, decrement functions
13+
14+ # Let's see some code
15+
16+ ```
17+ $cache = new Cache(array('name' => 'filecache',
18+ 'path' => 'cache/',
19+ 'extension' => '.cache'));
20+
21+ $cache->store('user', array(info));
22+ $cache->retrieve('user');
23+
24+ // Overwrite
25+ $cache->store('user', array(info2));
26+
27+ // Get settings
28+ $cache->getSettings();
29+
30+ // Purge cache
31+ $cache->flush();
32+ ```
33+
34+ # Credits
35+
36+ Thanks to cosenary for parts of the code logic
You can’t perform that action at this time.
0 commit comments