-
Notifications
You must be signed in to change notification settings - Fork 5
Getting started
Allows you to share data across requests as long as the PHP process is running.
- PHP 5.3.0 or later
- One of
- APC (>= 3.0.13)
- WinCache (>= 1.1.0)
Installation with Pyrus/PEAR2 (recommended)
Assuming you have installed Pyrus, you can install PEAR2_Net_Transmitter from the pear2.php.net channel with
pyrus install PEAR2_Cache_SHM-alpha
If you've decided to not use the pear2.php.net channel, but instead install directly from the archive distributed at the project page, you can use
pyrus install /path/to/downloaded/archive.tgz
Installation with PEAR
Like most PEAR2 packages, PEAR2_Cache_SHM is compatible with the PEAR installer. However, you have to first discover the PEAR2 channel with
pear channel-discover pear2.php.net
and only then install PEAR2_Cache_SHM with
pear install pear2/PEAR2_Cache_SHM-alpha
If you download the ".phar" archive, instead of using the PEAR(2) installer, you can just include the archive, and be ready to go, like for example:
<?php
require_once 'PEAR2_Cache_SHM-0.1.0.phar';
//Use any PEAR2_Cache_SHM class
This package has no external dependencies, so you can just extract the contents of the "src" folder wherever you like. To emulate the PEAR2 installer, you can place the files in a folder that's within your include_path.