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
* Starting V5
* Updated roadmap with important info
* Multiples improvements
- Re-implement [in|de]crement methods in ExtendedCacheItemInterface
- Added specific Exception if the driverCheck() has failed
* - Updated examples
- Updated readme
- Re-added legacy autoload
* Fixed missing return in autoload
* Added exemple for driver ssdb with standalone lib
* Cleaned up some code + indexed wrapper with constants
* - Re-implement touch method in ExtendedCacheItemInterface: deprecated in profit CacheItemInterface::expiresAfter()
- Added missing file headers
- Updated interfaces extending
* Rewrite stats method to be implemented in a driverStatistic() object, not a breaking change due to ArrayAccess use, but array use is deprecated
* Added beautiful psr6 badge
* Validated item on checklist
* Improved driver name detection for throwed exceptions
* Added item to the roadmap
* Implemented Devnull driver (aka void)
* Fixed namespace issue with Devnull driver
* Fixed Redis settings
* Added Couchbase driver
* Removed useless flags on Couchbase driver
* - Fixed increment/decrement params in interface
- Added append/preprend method to the API
* Fixed interace name issue
* Checked apend/prepend roadmap checklist
* Wrote couchbase example
* Attempting to repair tests
* Removed bin dir from gitignore
* Set exec flag to bin file
* Excluded composer dir of syntax checker
* Definately fixed travis build, i guess so...
* Added custom php.ini for tests
* Replaced deprecated char in custom ini
* Updated v5 roadmap
* Added Exception to expireAt() if type is not DateTimeInterface
* Added rawData methods to driverStatistic
* Remove automatically expired item in case it fails on driver itself
* Added Mongodb driver
* Updated README.md
* Added Devfalse and Devtrue driver
* Updated README.md and added driver description
* Updated README.md
* Updated README.md
* Updated README.md
* Added cache extends example
* Added Apcu driver
* Full code cleaning
* Grouped driver names in readme
* Prepared ground for tags reimplementation
* Added compression support for Memcache driver
- Added config field: compress_data
- If compress_data is set, enabled compression in Memcache driver
* Improved getTtl() method + updated Memcached flag visibility
* -Re-implemented tags features (as a replacement of global search)
* -Re-implemented tags features (as a replacement of global search)
* Fix auto driver
* Never expire when time is set to 0
* Updated phpDoc interface
* Ohh common, there's not enough drivers :3
- Added Leveldb driver
* Added stub files for Leveldb driver (more IDE friendly)
* Fixed bad behaviour with Leveldb\driver::driverClear()
* Added Scrutinizer badge
* Fixed typo
* Added scrutinizer conf
* Removed external coverage
* Updated Roadmap + Cleaned up DriverAbstract of no-longer-used methods
* Repaired travis build
* Code clean up + Travis build restart
* Removed another unused method
* Removed unused argument
* Adjusted codeclimate settings. They point out by-design features of phpFastCacche.
* Fixed broken build
* Added advanced tags features:
- incrementItemsByTag($tagName, $step = 1) // Increment items by a tag
- incrementItemsByTags(array $tagNames, $step = 1) // Increment items by some tags
- decrementItemsByTag($tagName, $step = 1) // Decrement items by a tag
- decrementItemsByTags(array $tagNames, $step = 1) // Decrement items by some tags
- appendItemsByTag($tagName, $data) // Append items by a tag
- appendItemsByTags(array $tagNames, $data) // Append items by some tags
- prependItemsByTag($tagName, $data) // Prepend items by a tag
- prependItemsByTags(array $tagNames, $data) // Prepend items by some tags
* Repaired the build, for real this time.
* Splitted up methods into traits to make the abstractDriver more "abstract"
* Updated trait conception
* $tmp property must be owned by PathSeekerTrait
* $tmp property must be owned by PathSeekerTrait
* Fixed phpDoc comment
* Fixed short var + updated codeclimate settings
* Fixed short var + updated codeclimate settings
* Removed unused var
* Excluded dir in codeclimate
* Added bundle-based methods
* Fixed cache issue with windows
* Added dependency status badge
* Fixed Leveldb destructor error
* Protected some properties
* Added getConfig() method
* Updated psr6 badge
* Fixed potential issue with Files Stats
* Fixed phpDoc comments
* Fixed Files stats
* Fixed directory write issues
* Fixed phpDoc comments
* Fixed Symfony profiler crashing
* Improved raw data for driver Files
* Updated driverStatistic entity
* Fixed SF exception
* Interfaced getDriverName()
* Fixed wrong itemInstance behaviour
* Temporary removed linear magic methods
* Improved driver statistics + FilePath issues fixes
* Fixed wrong var type
* Merged statements
* Updated drivers statistics + added xcache stub
* Fixed#286
* Fixed isHit() behaviour
* Protected driver-based methods
* Re-enabled CacheManager warning
* Not all driver clearing returns a boolean
* Fixed Leveldb DriverClear notice
* Mongodb sometimes does not return the Collstat size
* Fixed Ssdb cache clear
* Updated Wincache Info driver
* Improved travis tests efficiency
* Let's try the nightly !
* Improved Sqlite driver check
* Ps2 compliance + added php ext-intl suggestion
* Removed duplicate in readme
* Update README.md
* Updated roadmap
* Added phpFastCacheAbstractProxy
* Short array syntax
* Updated extends example with Proxy class
* Updated phpDoc comments
* e3868ac#commitcomment-17673718
* Added getDataAsJsonString() method to the Item API
* Added basic API class
* Added extended JSON methods to ItemPool API
* Updated examples headers to includes MIT licence
* Completed readme.md with missing API methods
* Removed useless information on api in readme.md
* Fixed Json formatting + tags behaviour
* Updating trait insertion
* Re-added clean() method and deprecated it in favor of cleanr().
* Fixed return in deprecated alias
* Deprecated CacheManager::setup() in favor of CacheManager::setDefaultConfig()
* Re-implemented driver fallback
* Re-ordered option in cache manager
* Updated Readme
* Specify the 7.1 for Travis
* Specify the 7.1 for Travis (reverted from commit 8ae52bc)
* Fixed typo
* Fixed typo
* Fixed#294
* Fixed#294
* Require the JSON extension as per new JSON methods
* Var type adjustements
\* Driver descriptions available in DOCS/DRIVERS.md
23
+
24
+
### Symfony developers are not forgotten !
25
+
Starting of the v5, phpFastCache comes with a [Symfony Bundle](https://github.com/PHPSocialNetwork/phpfastcache-bundle).
26
+
He's fresh, so feel free to report any bug or contribute to the code using pull requests.
9
27
10
28
---------------------------
11
29
Not a "Traditional" Caching
12
30
---------------------------
13
-
phpFastCache is not a traditional caching method which is keep read and write to files, sqlite or mass connections to memcache, redis, mongodb... phpFastCache use my unique caching method.
14
-
When you use Files, and Sqlite, I am guarantee you still can get fast speed almost like memcache & redis for sure. Also, when you use Memcache / Memcached, your miss hits will be reduce.
15
-
Different with normal caching methods which shared everywhere on internet, phpFastCache Lib reduce the high I/O load, and faster than traditional caching method at least x7 - 10 times.
31
+
phpFastCache is not a traditional caching method which is keep read and write to files, sqlite or mass connections to memcache, redis, mongodb... Also, when you use Memcache / Memcached, your miss hits will be reduce.
32
+
Different with normal caching methods which shared everywhere on internet, phpFastCache Lib reduce the high I/O load, and faster than traditional caching method at least x7 ~+ times.
16
33
However, some time you still want to use traditional caching, we support them too.
17
34
18
35
```php
19
36
use phpFastCache\CacheManager;
20
37
21
-
// Default value: is "phpfastcache" (fastest), you can change to "normal" or "memory" (fast)
22
-
CacheManager::CachingMethod("normal");
23
-
24
-
// Recommend: use phpfastcache to reduce files I/O & CPU Load, Memcached missing hits, and make redis and other connections become faster.
25
-
// If you get any error due to Server / Hosting, try to change to "memory" , act almost same way as "phpfastcache" but slower a little bit
26
-
// In bad situation, use "normal" as traditional caching method
38
+
CacheManager::getInstance('files', $config);
39
+
// An alternative exists:
40
+
CacheManager::Files($config);
27
41
28
42
```
29
43
@@ -38,18 +52,56 @@ With phpFastCache, your page only send 1 query to DB, and use the cache to serve
38
52
Rich Development API
39
53
---------------------------
40
54
41
-
phpFastCache offers you a lot of usefull APIS:
42
-
43
-
- get($keyword) // The getter, obviously, return your cache object
44
-
- set($keyword, $something_your_want_to_cache, $time_as_second = 0) // The setter, for those who missed it, put 0 meant cache it forever
45
-
- delete($keyword) // For removing a cached thing
46
-
- clean() // Allow you to completely empty the cache and restart from the beginning
47
-
- touch($keyword, $time_you_want_to_extend) // Allow you to extends the lifetime of an entry without altering the value
48
-
- increment($keyword, $step = 1) // For integer that we can count on
0 commit comments