pluf2

pluf2 Commit Details


Date:2009-03-09 00:52:23 (15 years 9 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:87772252b02d03d107d6580eef4588f83466e7e5
Parents: e3fc921906e8ae5bf918f96be5a020c8899e90b3
Message:Fixed the documentation.

Changes:

File differences

src/Pluf/Cache/Apc.php
2525
2626
2727
28
28
29
2930
30
31
31
32
33
3234
3335
3436
......
3840
3941
4042
43
44
45
46
4147
4248
4349
......
4753
4854
4955
50
51
56
57
5258
5359
5460
......
8389
8490
8591
86
92
8793
8894
8995
* APC based cache.
*
* You need APC installed on your server for this cache system to
* work.
* work. You can install APC with <code>$ sudo pecl install apc</code>
* on most systems.
*
* A special 'cache_apc_keyprefix' can be set to use one
* memcached for different applications and avoid conflict.
* A special 'cache_apc_keyprefix' can be set to use APC for different
* applications and avoid conflict. Compression is performed at the
* PHP level using the gz(in|de)flate functions.
*
* Example of configuration:
*
* $cfg['cache_apc_keyprefix'] = 'uniqueforapp';
* $cfg['cache_apc_compress'] = true;
* </pre>
*
* @see Pluf_Cache
* @see http://www.php.net/gzdeflate
* @see http://www.php.net/gzinflate
*/
class Pluf_Cache_Apc extends Pluf_Cache
{
private $keyprefix = '';
/**
* Auto compress the data to save memory against a performance
* loss.
* Auto compress the data to save memory against a small
* performance loss.
*/
private $compress = false;
*
* @param string Key to get the information
* @param mixed Default value to return if cache miss (null)
* @param mixed Stored value or default
* @return mixed Stored value or default
*/
public function get($key, $default=null)
{

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05344s using 13 queries.