You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
PHP Cache Class (File base)
1
+
PHP FileCache Class (File base)
2
2
============================
3
3
A simple file based cache based from Erik Giberti's FileCache class. See [here](http://af-design.com/blog/2010/07/30/simple-file-based-caching-in-php/)
4
4
@@ -35,19 +35,19 @@ You may also edit composer.json manually then perform ```composer update```:
35
35
require('vendor/autoload.php');
36
36
37
37
//create new instance of the class
38
-
use rothkj1022\Cache;
39
-
$cache = new Cache\Cache("tmp/");
38
+
use rothkj1022\FileCache;
39
+
$cache = new FileCache\FileCache("tmp/");
40
40
```
41
41
42
42
### Example usage without composer
43
43
44
44
```php
45
45
//require the class
46
-
require_once("lib/Cache.php");
46
+
require_once("lib/FileCache.php");
47
47
48
48
//create new instance of the class
49
-
use rothkj1022\Cache;
50
-
$cache = new Cache\Cache("tmp/");
49
+
use rothkj1022\FileCache;
50
+
$cache = new FileCache\FileCache("tmp/");
51
51
52
52
//...
53
53
```
@@ -96,6 +96,10 @@ See code to see all private methods used like `Cache::_encrypt($pure_string)` et
96
96
97
97
## Changelog
98
98
99
+
### Version 2.1.1
100
+
101
+
* Changed: Renamed class back to Erik Giberti's original name, FileCache
Copy file name to clipboardExpand all lines: lib/FileCache.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
<?php
2
-
namespacerothkj1022\Cache;
2
+
namespacerothkj1022\FileCache;
3
3
4
4
/**
5
-
* @package Cache - A simple file based cache (based from Erik Giberti's FileCache class. http://af-design.com/blog/2010/07/30/simple-file-based-caching-in-php/)
5
+
* @package FileCache - A simple file based cache (based from Erik Giberti's FileCache class. http://af-design.com/blog/2010/07/30/simple-file-based-caching-in-php/)
6
6
* @link http://www.lodev09.com
7
7
* @author Erik Giberti
8
8
* @author Jovanni Lo
@@ -51,7 +51,7 @@
51
51
*
52
52
*/
53
53
54
-
classCache {
54
+
classFileCache {
55
55
56
56
/**
57
57
* Value is pre-pended to the cache, should be the full path to the directory
@@ -84,7 +84,7 @@ function __construct($root = '/tmp/') {
84
84
$this->root = $root;
85
85
// Requires the native JSON library
86
86
if (!function_exists('json_decode') || !function_exists('json_encode')) {
87
-
thrownewException('Cache needs the JSON PHP extensions.');
87
+
thrownewException('FileCache needs the JSON PHP extensions.');
0 commit comments