mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 20:12:42 +00:00
Added doc blocks for WincacheEngine. Fixed Memcache doc block.
This commit is contained in:
parent
ed8daf852b
commit
826001adc7
3 changed files with 24 additions and 13 deletions
|
@ -247,7 +247,6 @@
|
||||||
* 'serialize' => true, [optional]
|
* 'serialize' => true, [optional]
|
||||||
* ));
|
* ));
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* APC (http://pecl.php.net/package/APC)
|
* APC (http://pecl.php.net/package/APC)
|
||||||
*
|
*
|
||||||
* Cache::config('default', array(
|
* Cache::config('default', array(
|
||||||
|
@ -263,12 +262,11 @@
|
||||||
* 'engine' => 'Xcache', //[required]
|
* 'engine' => 'Xcache', //[required]
|
||||||
* 'duration'=> 3600, //[optional]
|
* 'duration'=> 3600, //[optional]
|
||||||
* 'probability'=> 100, //[optional]
|
* 'probability'=> 100, //[optional]
|
||||||
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
||||||
* 'user' => 'user', //user from xcache.admin.user settings
|
* 'user' => 'user', //user from xcache.admin.user settings
|
||||||
* 'password' => 'password', //plaintext password (xcache.admin.pass)
|
* 'password' => 'password', //plaintext password (xcache.admin.pass)
|
||||||
* ));
|
* ));
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* Memcache (http://www.danga.com/memcached/)
|
* Memcache (http://www.danga.com/memcached/)
|
||||||
*
|
*
|
||||||
* Cache::config('default', array(
|
* Cache::config('default', array(
|
||||||
|
@ -281,9 +279,16 @@
|
||||||
* ), //[optional]
|
* ), //[optional]
|
||||||
* 'persistent' => true, // [optional] set this to false for non-persistent connections
|
* 'persistent' => true, // [optional] set this to false for non-persistent connections
|
||||||
* 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
|
* 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
|
||||||
* 'persistent' => true, // [optional] set this to false for non-persistent connections
|
|
||||||
* ));
|
* ));
|
||||||
|
*
|
||||||
|
* Wincache (http://php.net/wincache)
|
||||||
*
|
*
|
||||||
|
* Cache::config('default', array(
|
||||||
|
* 'engine' => 'Wincache', //[required]
|
||||||
|
* 'duration'=> 3600, //[optional]
|
||||||
|
* 'probability'=> 100, //[optional]
|
||||||
|
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
||||||
|
* ));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -315,7 +320,7 @@ Cache::config('_cake_core_', array(
|
||||||
));
|
));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure the cache for model, and datasource caches. This cache configuration
|
* Configure the cache for model and datasource caches. This cache configuration
|
||||||
* is used to store schema descriptions, and table listings in connections.
|
* is used to store schema descriptions, and table listings in connections.
|
||||||
*/
|
*/
|
||||||
Cache::config('_cake_model_', array(
|
Cache::config('_cake_model_', array(
|
||||||
|
|
|
@ -82,7 +82,7 @@ class Cache {
|
||||||
*
|
*
|
||||||
* `Cache::config('default');`
|
* `Cache::config('default');`
|
||||||
*
|
*
|
||||||
* There are 4 built-in caching engines:
|
* There are 5 built-in caching engines:
|
||||||
*
|
*
|
||||||
* - `FileEngine` - Uses simple files to store content. Poor performance, but good for
|
* - `FileEngine` - Uses simple files to store content. Poor performance, but good for
|
||||||
* storing large objects, or things that are not IO sensitive.
|
* storing large objects, or things that are not IO sensitive.
|
||||||
|
@ -90,6 +90,7 @@ class Cache {
|
||||||
* - `MemcacheEngine` - Uses the PECL::Memcache extension and Memcached for storage.
|
* - `MemcacheEngine` - Uses the PECL::Memcache extension and Memcached for storage.
|
||||||
* Fast reads/writes, and benefits from memcache being distributed.
|
* Fast reads/writes, and benefits from memcache being distributed.
|
||||||
* - `XcacheEngine` - Uses the Xcache extension, an alternative to APC.
|
* - `XcacheEngine` - Uses the Xcache extension, an alternative to APC.
|
||||||
|
* - `WincacheEngine` - Uses Windows Cache Extension for PHP. Supports wincache 1.1.0 and higher.
|
||||||
*
|
*
|
||||||
* The following keys are used in core cache engines:
|
* The following keys are used in core cache engines:
|
||||||
*
|
*
|
||||||
|
|
|
@ -247,7 +247,6 @@
|
||||||
* 'serialize' => true, [optional]
|
* 'serialize' => true, [optional]
|
||||||
* ));
|
* ));
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* APC (http://pecl.php.net/package/APC)
|
* APC (http://pecl.php.net/package/APC)
|
||||||
*
|
*
|
||||||
* Cache::config('default', array(
|
* Cache::config('default', array(
|
||||||
|
@ -263,12 +262,11 @@
|
||||||
* 'engine' => 'Xcache', //[required]
|
* 'engine' => 'Xcache', //[required]
|
||||||
* 'duration'=> 3600, //[optional]
|
* 'duration'=> 3600, //[optional]
|
||||||
* 'probability'=> 100, //[optional]
|
* 'probability'=> 100, //[optional]
|
||||||
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
||||||
* 'user' => 'user', //user from xcache.admin.user settings
|
* 'user' => 'user', //user from xcache.admin.user settings
|
||||||
* 'password' => 'password', //plaintext password (xcache.admin.pass)
|
* 'password' => 'password', //plaintext password (xcache.admin.pass)
|
||||||
* ));
|
* ));
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* Memcache (http://www.danga.com/memcached/)
|
* Memcache (http://www.danga.com/memcached/)
|
||||||
*
|
*
|
||||||
* Cache::config('default', array(
|
* Cache::config('default', array(
|
||||||
|
@ -281,9 +279,16 @@
|
||||||
* ), //[optional]
|
* ), //[optional]
|
||||||
* 'persistent' => true, // [optional] set this to false for non-persistent connections
|
* 'persistent' => true, // [optional] set this to false for non-persistent connections
|
||||||
* 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
|
* 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
|
||||||
* 'persistent' => true, // [optional] set this to false for non-persistent connections
|
|
||||||
* ));
|
* ));
|
||||||
|
*
|
||||||
|
* Wincache (http://php.net/wincache)
|
||||||
*
|
*
|
||||||
|
* Cache::config('default', array(
|
||||||
|
* 'engine' => 'Wincache', //[required]
|
||||||
|
* 'duration'=> 3600, //[optional]
|
||||||
|
* 'probability'=> 100, //[optional]
|
||||||
|
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
||||||
|
* ));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -315,7 +320,7 @@ Cache::config('_cake_core_', array(
|
||||||
));
|
));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure the cache for model, and datasource caches. This cache configuration
|
* Configure the cache for model and datasource caches. This cache configuration
|
||||||
* is used to store schema descriptions, and table listings in connections.
|
* is used to store schema descriptions, and table listings in connections.
|
||||||
*/
|
*/
|
||||||
Cache::config('_cake_model_', array(
|
Cache::config('_cake_model_', array(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue