Document & API
A Simple PHP Caching Class
From Apr 28 2013, phpFastCache is available in GitHub, and it also support more objects type
API Functions are available below.
I don't need to upgrade to Dedicated, phpFastCache saved my little VPS
J. Nguyen, EDM Inc
Q. What are the requirements for using phpFastCache?
All you need are PHP 5.5+
It works with All Operating System, all database, and all Web Server that support
phpFastCache is Open Source, feel FREE to edit and join our GitHub Community.
For PHP Version < 5.5, please download version 4.x and lower
- Via Composer: composer require phpFastCache/phpFastCache
- Manually: See the file examples/legacy.php for more information.
You are now ready to really improve your website speed!
X.Simple GET-SET methods
X. Setup & Configuration
Q. Why use phpFastCache as Your Caching Method?
phpFastCache is Lightweight, Fastest & Security, supported many caching class
(APC, MemCached, MemCache, Files, PDO, Redis, Ssdb, WinCache, etc). PhpFastCache is faster than
traditional caching method at least 7-10 times.
It is more simple by Set, Get, and automatic clean up cache. It is also save more
CPU usage than using other file cache.
phpFastCache can run as Memory Caching. Memory is always faster than file system.
phpFastCache supported: Redis, Predis, SSDB, MongoDB, Files, APC, PDO,
MemCached, MemCache, XCache and WinCache; It is more easier than all other
caching on integrated into your code. You won't need root permission, you don't
need to edit php.ini,
and will never worry about your server memory by caching again.
Are you thinking about DSO, CGI, FastCgi, suPHP? phpFastCache can run on all of
If you want to change your cache $storage when your move your web server, just
set it from $storage = "apc" to "memcached" , "wincache" , "files" , or simple
with "auto" detect.
phpFastCache can run on shared hosting, VPS, Dedicated Server, and help you save
lot of cost from upgrading your Web Server. phpFastCache help thousand of
And It's open Source as MIT License
Try it and you will love phpFastCache
Hey hey! Are you lazy to learn new thing?
Dude, phpFastCache only uses 2 simple methods: SET & GET =.=!
Not a Normal / Traditional Cache
phpFastCache is also a unique caching method, it's not only help reduce Database & API call, but
PHP Caching Class Reduce CPU High Load & I/O
. Yes, it faster than traditional / normal caching method these shared everywhere on internet like
7-10 times. Using phpFastCache with Files, you can almost get the same speed like Memcached.
Using phpFastCache with Memcached, Redis, SQlite ..etc, you can reduce the missing hit rates,
connections number, and CPU Load.
This is a unique fastest caching lib.
Reduce Database Calls
PHP Caching Class For Database
: Your website have 10,000 visitors who are online, and your dynamic page have to send
10,000 same queries to database on every page load.
With phpFastCache, your page only send 1 query to DB, and use the cache to serve 9,999 other
Improve cURL & API Calls
Powerful PHP Caching Class
: You are using Bing API, Google API or cURL and your API transactions are limited?
phpFastCache can save your Server CPU & API Transactions.
You can use phpFastCache to do it easily.
Caching Whole Webpage
PHP Cache whole web page
: You can use phpFastCache to cache the whole webpage easy too. This is simple
example, but in real code, you should split it to 2 files: cache_start.php and cache_end.php.
The cache_start.php will store the beginning code until ob_start(); and the cache_end.php will start
from GET HTML WEBPAGE. Then, your index.php will include cache_start.php on beginning and
cache_end.php at the end of file.
Enable Multi Caching Method
Example with Files, PDO, APC, WinCache, XCache, MemCache and MemCached Caching
: phpFastCache will set up multiple caching files, maximum 50MB per file, and you can
SET/Get from APC, MemCache .. etc.
It's good for caching cURL Data and API call results. You can mix multiple methods with
phpFastCache. For example, mix files caches with APC, or PDO and memcached.
Want more? Check our Document!
phpFastCache is simple yet powerful. Its simple design promotes quick deployment, ease of
development, and solves many problems facing large data caches.