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
:exclamation:V4 USERS, PLEASE SEE THE README !! V5 IS OFFICIALY OUT !! YOUR CODE NEEDS TO BE [REWRITTEN](https://github.com/PHPSocialNetwork/phpfastcache/wiki/%5BV4%5D-Migrating-your-code-to-the-V5):exclamation:
4
+
:exclamation:V6 USERS, PLEASE NOTE THAT THE V6 REQUIRES PHP 5.6 AT LEAST:exclamation:
4
5
5
6
---------------------------
6
7
Simple Yet Powerful PHP Caching Class
@@ -12,17 +13,17 @@ One Class uses for All Cache. You don't need to rewrite your code many times aga
12
13
### Supported drivers at this day *
13
14
:bulb: Feel free to propose a driver by making a new **Pull Request**, they are welcome !
14
15
15
-
| Regular drivers | High performances drivers | Development driver|
\* Driver descriptions available in DOCS/DRIVERS.md
28
29
@@ -32,7 +33,6 @@ It's fresh, so feel free to report any bug or contribute to the project using pu
32
33
33
34
Also a [Drupal 8 Module](https://github.com/PHPSocialNetwork/phpfastcache-drupal) is currently in development, add it to your starred projects to get notified of the first public release.
34
35
35
-
36
36
---------------------------
37
37
Not a "Traditional" Caching
38
38
---------------------------
@@ -66,7 +66,7 @@ phpFastCache offers you a lot of useful APIs:
66
66
- getKey() // Returns the item identifier (key)
67
67
- get() // The getter, obviously, returns your cache object
68
68
- set($value) // The setter, for those who missed it, putting 0 means cache it forever
69
-
- expiresAfter($ttl) // Allow you to extend the lifetime of an entry without altering its value (formerly known as touch())
69
+
- expiresAfter($ttl) // Allows you to extends the lifetime of an entry without altering its value (formerly known as touch())
70
70
- expiresAt($expiration) // Sets the expiration time for this cache item (as a DateTimeInterface object)
71
71
- increment($step = 1) // To allow us to count on an integer item
72
72
- decrement($step = 1) // Redundant joke...
@@ -82,40 +82,146 @@ phpFastCache offers you a lot of useful APIs:
82
82
- getTags() // Gets the tags
83
83
- getTagsAsString($separator = ', ') // Gets the data as a string separated by $separator
84
84
- removeTag($tagName) // Removes a tag
85
-
- removeTags(array $tagNames) // Removes some tags
86
-
- getDataAsJsonString()// Returns the data as a well-formatted json string
More information about the implementation and the events available on the [Wiki](https://github.com/PHPSocialNetwork/phpfastcache/wiki/%5BV6%5D-Introducing-to-events)
214
+
215
+
---------------------------
216
+
Introducing new helpers
217
+
---------------------------
218
+
:books: As of the V6, PhpFastCache provides some helpers to make your code easier.
219
+
220
+
- The [ActOnAll Helper](https://github.com/PHPSocialNetwork/phpfastcache/wiki/%5BV6%CB%96%5D-Act-on-all-instances) to help you to act on multiple instance at once.
221
+
- The [CacheConditional Helper](https://github.com/PHPSocialNetwork/phpfastcache/wiki/%5BV6%CB%96%5D-Cache-Conditional) to help you to make the basic conditional statement more easier.
222
+
- The [Psr16 adapter](https://github.com/PHPSocialNetwork/phpfastcache/wiki/%5BV6%CB%96%5D-Psr16-adapter) to keep it simple as explained above.
117
223
118
-
It also supports Multiple calls, Tagging, Setup Folder for caching. Look at our examples folders for more information.
224
+
May more will come in the future, feel free to contribute !
119
225
120
226
---------------------------
121
227
As Fast To Implement As Opening a Beer
@@ -175,7 +281,7 @@ echo implode('<br />', $CachedString->get());// Will echo your product list
This repository holds all interfaces related to PSR-16.
5
+
6
+
Note that this is not a cache implementation of its own. It is merely an interface that describes a cache implementation. See [the specification](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-16-simple-cache.md) for more details.
7
+
8
+
You can find implementations of the specification by looking for packages providing the [psr/simple-cache-implementation](https://packagist.org/providers/psr/simple-cache-implementation) virtual package.
0 commit comments