Skip to content

Commit 9f6bd2b

Browse files
author
capkokoon
committed
Update readme.md
1 parent af3a114 commit 9f6bd2b

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

README.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
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

0 commit comments

Comments
 (0)