PHPackages                             hammermaps-dev/phpfastcache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. hammermaps-dev/phpfastcache

ActiveLibrary[Database &amp; ORM](/categories/database)

hammermaps-dev/phpfastcache
===========================

PHP Abstract Cache Class - Reduce your database call using cache system. PhpFastCache handles a lot of drivers such as Apc(u), Cassandra, CouchBase, Couchdb, Mongodb, Files, (P)redis, Leveldb, Memcache(d), Ssdb, Sqlite, Wincache, Xcache, Zend Data Cache.

7.0.10(7y ago)0367MITPHPPHP &gt;=7.0

Since Feb 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Hammermaps-DEV/phpfastcache)[ Packagist](https://packagist.org/packages/hammermaps-dev/phpfastcache)[ Docs](https://www.phpfastcache.com)[ RSS](/packages/hammermaps-dev-phpfastcache/feed)WikiDiscussions v7 Synced 1w ago

READMEChangelog (9)Dependencies (2)Versions (158)Used By (0)

[![Total Downloads](https://camo.githubusercontent.com/ad02da6674909d63355e0ecc63b2c50ab58ebd45fd7c001269eca9e554969bd3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068706661737463616368652f7068706661737463616368652e7376673f6d61784167653d3836343030)](https://packagist.org/packages/phpfastcache/phpfastcache) [![Latest Stable Version](https://camo.githubusercontent.com/89beebf80d06a6d67cae0829021b384e8cbeeaa98b01bfe1bbc8d116529c442c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068706661737463616368652f7068706661737463616368652e7376673f6d61784167653d3836343030)](https://packagist.org/packages/phpfastcache/phpfastcache) [![License](https://camo.githubusercontent.com/eecc536b0d85d1ee30ab17b9d68703ba4f07f7043ddccf81348d82c53de445a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7068706661737463616368652f7068706661737463616368652e7376673f6d61784167653d3836343030)](https://packagist.org/packages/phpfastcache/phpfastcache) [![Coding Standards](https://camo.githubusercontent.com/152e5f305870381d55c161c6ab171a30e7642c3a6dfcdd873dc5e14d23d1ba75/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f43492d505352362d6f72616e67652e7376673f6d61784167653d3836343030)](https://github.com/php-fig/cache) [![Coding Standards](https://camo.githubusercontent.com/630805578d7c83ea3c44f6925f7bc38e56e21d09a06d8fcdc0170df7f26c92d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f43532d50535231362d6f72616e67652e7376673f6d61784167653d3836343030)](https://github.com/php-fig/simple-cache)
[![Code Climate](https://camo.githubusercontent.com/8340ab38ae277a2562ac2bc75da84e7581e491677b421b4090e4f3457b1cb61b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f504850536f6369616c4e6574776f726b2f7068706661737463616368652f6261646765732f6770612e737667)](https://codeclimate.com/github/PHPSocialNetwork/phpfastcache) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/e7edc73cfe227d0ecdbee06f8b7d2c2a40313a4e61964627853cab0895259e3d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f504850536f6369616c4e6574776f726b2f7068706661737463616368652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PHPSocialNetwork/phpfastcache/?branch=master) [![Build Status](https://camo.githubusercontent.com/83b8d58df86bfcc24aa261f457a7c5c45a427bc9c4dffab8149fdf998543c044/68747470733a2f2f7472617669732d63692e6f72672f504850536f6369616c4e6574776f726b2f7068706661737463616368652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/PHPSocialNetwork/phpfastcache) [![Semver compliant](https://camo.githubusercontent.com/d621a9080d26fc0553bd89a69e8e1c01fcf10fa994bb2632176e071bdacf8fc0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53656d7665722d322e302e302d79656c6c6f772e7376673f6d61784167653d3836343030)](https://semver.org/spec/v2.0.0.html) [![Patreon](https://camo.githubusercontent.com/4d5a8809be5e960307f8f93bfc3070c8103b00610303e96ed064f2b88d0d6949/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537570706f727425323075732532306f6e2d50617472656f6e2d6639363835342e7376673f6d61784167653d3836343030)](https://www.patreon.com/geolim4)

#### ⚠️ Please note that the V7 is a major (BC breaking) update of PhpFastCache !

[](#warning-please-note-that-the-v7-is-a-major-bc-breaking-update-of-phpfastcache-)

> As the V7 is **absolutely** not compatible with previous versions, please read carefully the [migration guide](./docs/migration/MigratingFromV6ToV7.md) to ensure you the smoothest migration possible. One of the biggest change is the configuration system which is now an object that replace the primitive array that we used to implement back then. Also please note that the V7 requires at least PHP7 or higher to work properly.

---

Simple Yet Powerful PHP Caching Class
-------------------------------------

[](#simple-yet-powerful-php-caching-class)

More information in [Wiki](https://github.com/PHPSocialNetwork/phpfastcache/wiki)The simplicity of abstraction: One class for many backend cache. You don't need to rewrite your code many times again.

### PHP7 Strict types enforced

[](#php7-strict-types-enforced)

As of the V7 PhpFastCache enforces the php7 strict types to make sure that it's completely php7 compatible and is type aware. This ensure you that the library is completely reliable when it come to manipulate variable types.

### Supported drivers at this day \*

[](#supported-drivers-at-this-day-)

💡 Feel free to propose a driver by making a new **[Pull Request](https://github.com/PHPSocialNetwork/phpfastcache/compare)**, they are welcome !

Regular driversHigh performances driversDevelopment drivers`Apc(u)``Cassandra``Devnull``Cookie``CouchBase``Devfalse``Files``Couchdb``Devtrue``Leveldb` ❓`Mongodb``Memstatic``Memcache(d)``Predis``Sqlite``Redis``Wincache` ❓`Riak``Xcache` ❓`Ssdb``Zend Disk Cache``Zend Memory Cache`\* Driver descriptions available in DOCS/DRIVERS.md

❓ Please note that as of PHP7 some php extensions were not yet updated (and will may not), we keep the code here but there's no guarantee that they are still working especially due to the cores changes introduced by Opcache.

### Symfony/Drupal developers are not forgotten !

[](#symfonydrupal-developers-are-not-forgotten-)

Starting with v5, phpFastCache comes with a [Symfony Bundle](https://github.com/PHPSocialNetwork/phpfastcache-bundle). It is now a mature project Flex -ready, so feel free to give at try and report any bug (if any).

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.

---

Not a "Traditional" Caching
---------------------------

[](#not-a-traditional-caching)

phpFastCache is not like the traditional caching methods which keep reading and writing to files, sqlite or keeping open massive amounts of connections to memcache, redis, mongodb...
Also, when you use high performances drivers, your miss hits will be drastically reduced.
Slightly different from the usual caching libraries you will find everywhere on the internet, the phpFastCache library reduces the I/O and CPU load as much as possible.

```
