Download the PHP package zoopcommerce/juggernaut without Composer
On this page you can find all versions of the php package zoopcommerce/juggernaut. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zoopcommerce/juggernaut
More information about zoopcommerce/juggernaut
Files in zoopcommerce/juggernaut
Package juggernaut
Short Description A caching module for PHP that includes adapters for File System, APC and Memcached. It also includes a number of helper classes for DB caching and full page cache
License MIT
Homepage http://github.com/zoopcommerce/juggernaut
Informations about the package juggernaut
Juggernaut
Introduction
Juggernaut is a super fast PHP cache. It has a number of storage adapters and a few simple helpers to get you up and caching quickly.
One of the best aspects of this module is that it provides flood protection both on the initial cache creation - by queuing subsequent requests - but also on re-caching - by serving old cache for subsequent requests until the new cache has been re-created.
These two features allow Juggernaut to be at least 100% faster than the Zend Framework 2 cache adapters in normal use, and up to 270% faster on highly concurrent applications.
Installation
Install the module using Composer into your application's vendor directory. Add the following line to your
composer.json
.
Usage
You can use Juggernaut by directly instantiating a storage adapter and calling set/get.
Key-Value-Pair Caching Using Storage Adapters
File System
MongoDB
Memcached
MySQL
Helpers
There are a few helpers that will expidite the usage of Juggernaut.
Full Page
As the name suggests, the "Full Page" helper will store the rendered page directly to cache. This results in blindingly fast page loads.
To use this script just place the following at the top of your pages.
You can use any of the provided adapters to store the full page cache. eg.
There's no need to manually save the rendered page to cache as the script will automatically flush the page output to the cache adapter once the script exits.
Database
MySQLi
You can use the mysqli helper to automatically cache your sql queries.
As you can see you don't have to worry if the cache exists or not as the helper does all the heavy lifting.
Coming soon
- Unit tests
- Working examples
- MySQL adapter
- Memcached adapter
- MongoDB helper