cvs: peardoc /en/package/caching/cache-lite/cache-lite cache_lite.xml
| From: | Christophe Gesch� | Date: | Tue, 01 Nov 2005 17:17:47 +0000 |
| Subject: | cvs: peardoc /en/package/caching/cache-lite/cache-lite cache_lite.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7117@lists.php.net to get a copy of this message | ||
moosh Tue Nov 1 12:17:47 2005 EDT
Modified files:
/peardoc/en/package/caching/cache-lite/cache-lite cache_lite.xml
Log:
-typo & indent
http://cvs.php.net/diff.php/peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml diff -u peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml:1.4 peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml:1.5 --- peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml:1.4 Wed Oct 5 14:30:43 2005 +++ peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml Tue Nov 1 12:17:44 2005 @@ -1,313 +1,342 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.caching.cache-lite.cache-lite.cache-lite"> - <refnamediv> - <refname>constructor <function>Cache_Lite::Cache_Lite</function></refname> - <refpurpose>Constructor</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Cache/Lite.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>void constructor <function>Cache_Lite::Cache_Lite</function></funcdef> - <paramdef>array <parameter> <optional>$options = array(NULL)</optional></parameter></paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.desc"> - &title.desc; - <para> - The constructor of the Cache_Lite core class. You can give an associative array - as an argument to set a lot of options. - </para> - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.param"> - &title.param; - <para> - <variablelist> - <varlistentry> - <term> - &type.array; - <parameter>$options</parameter> - </term> - <listitem> - <para> - associative array to set a lot of options - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - <para> - <table> - <title></title> - <tgroup cols="4"> - <thead> - <row> - <entry>Option</entry> - <entry>Data Type</entry> - <entry>Default Value</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry> - cacheDir - </entry> - <entry> - &type.string; - </entry> - <entry> - /tmp/ - </entry> - <entry> - directory where to put the cache file (with a trailing slash at the end) - </entry> - </row> - <row> - <entry> - caching - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - enable / disable caching - </entry> - </row> - <row> - <entry> - lifeTime - </entry> - <entry> - &type.int; - </entry> - <entry> - 3600 - </entry> - <entry> - cache lifetime in seconds - </entry> - </row> - <row> - <entry> - fileLocking - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - enable / disable fileLocking (can avoid cache corruption under bad - circumstances) - </entry> - </row> - <row> - <entry> - writeControl - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - enable / disable write control (enable write control will lightly slow - the cache writing but not the cache reading, write control can detect - some corrupt cache files but maybe it's not a perfect control) - </entry> - </row> - <row> - <entry> - readControl - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - enable / disable read control (if enabled, a control key is embeded - in cache file and this key is compared with the one calculated after - the reading) - </entry> - </row> - <row> - <entry> - readControlType - </entry> - <entry> - &type.string; - </entry> - <entry> - crc32 - </entry> - <entry> - Type of read control (only if read control is enabled). Must be 'md5' - (for a md5 hash control (best but slowest)), 'crc32' (for a crc32 hash - control (lightly less safe but faster)) or 'strlen' (for a length only - test (fastest)) - </entry> - </row> - <row> - <entry> - pearErrorMode - </entry> - <entry> - &type.int; - </entry> - <entry> - CACHE_LITE_ERROR_RETURN - </entry> - <entry> - pear error mode (when raiseError is called) (CACHE_LITE_ERROR_RETURN - for just returning a PEAR_Error object or CACHE_LITE_ERROR_DIE for - immediate stop of the script (good for debug)) - </entry> - </row> - <row> - <entry> - fileNameProtection - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - file Name protection (if set to true, you can use any cache id or - group name, if set to false, it can be faster but cache ids and group - names will be used directly in cache file names so be carefull with - special characters...) - </entry> - </row> - <row> - <entry> - automaticSerialization - </entry> - <entry> - &type.bool; - </entry> - <entry> - &false; - </entry> - <entry> - enable / disable automatic serialization (it can be used to save - directly datas which aren't strings but it's slower) - </entry> - </row> - <row> - <entry> - memoryCaching - </entry> - <entry> - &type.bool; - </entry> - <entry> - &false; - </entry> - <entry> - enable / disable "Memory Caching" (NB : there is - no lifetime for memory caching, only the end of the script) - </entry> - </row> - <row> - <entry> - onlyMemoryCaching - </entry> - <entry> - &type.bool; - </entry> - <entry> - &false; - </entry> - <entry> - enable / disable "Only Memory Caching" (if enabled, - files are not used anymore) - </entry> - </row> - <row> - <entry> - memoryCachingLimit - </entry> - <entry> - &type.int; - </entry> - <entry> - 1000 - </entry> - <entry> - max number of records to store into memory caching - </entry> - </row> - <row> - <entry> - automaticCleaningFactor - </entry> - <entry> - &type.int; - </entry> - <entry> - 0 - </entry> - <entry> - Disable / Tune the automatic cleaning process. The - automatic cleaning process destroy too old (for the given life time) - cache files when a new cache file is written. 0 means "no automatic - cache cleaning", 1 means "systematic cache cleaning" (slow), x>1 means - "automatic cleaning randomly 1 times on x cache writes". A value - between 20 and 200 is maybe a good start. - </entry> - </row> - <row> - <entry> - hashedDirectoryLevel - </entry> - <entry> - &type.int; - </entry> - <entry> - 0 - </entry> - <entry> - Set the hashed directory structure level. 0 means - "no hashed directory structure", 1 means "one level of directory", 2 - means "two levels"... This option can speed up Cache_Lite only when you - have many thousands of cache file. Only specific benchs can help - you to choose the perfect value for you. Maybe, 1 or 2 is a good start. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.throws"> - &title.throws; - <para> - <emphasis>throws</emphasis> no exceptions thrown - </para> - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.example"> - &title.example; - <example> - <title>Using most common options</title> - <programlisting role="php"> + <refnamediv> + <refname>constructor <function>Cache_Lite::Cache_Lite</function></refname> + <refpurpose>Constructor</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Cache/Lite.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>void constructor <function>Cache_Lite::Cache_Lite</function></funcdef> + <paramdef>array <parameter> <optional>$options = array(NULL)</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.desc"> + &title.desc; + <para> + The constructor of the Cache_Lite core class. + + You can give an associative array as an argument to set a lot of options. + </para> + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.param"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.array; + <parameter>$options</parameter> + </term> + <listitem> + <para> + associative array to set a lot of options + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + <para> + <table> + <title></title> + <tgroup cols="4"> + <thead> + <row> + <entry>Option</entry> + <entry>Data Type</entry> + <entry>Default Value</entry> + <entry>Description</entry> + </row> + </thead> + <tbody> + <row> + <entry> + cacheDir + </entry> + <entry> + &type.string; + </entry> + <entry> + /tmp/ + </entry> + <entry> + directory where to put the cache file + (with a trailing slash at the end) + </entry> + </row> + <row> + <entry> + caching + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + enable / disable caching + </entry> + </row> + <row> + <entry> + lifeTime + </entry> + <entry> + &type.int; + </entry> + <entry> + 3600 + </entry> + <entry> + cache lifetime in seconds + </entry> + </row> + <row> + <entry> + fileLocking + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + enable / disable fileLocking. + Can avoid cache corruption under bad circumstances. + </entry> + </row> + <row> + <entry> + writeControl + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + enable / disable write control. + + Enable write control will lightly slow the cache writing + but not the cache reading. + + Write control can detect some corrupt cache files + but maybe it's not a perfect control. + </entry> + </row> + <row> + <entry> + readControl + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + enable / disable read control. + If enabled, a control key is embeded in cache file + and this key is compared with the one calculated after the reading + </entry> + </row> + <row> + <entry> + readControlType + </entry> + <entry> + &type.string; + </entry> + <entry> + crc32 + </entry> + <entry> + Type of read control (only if read control is enabled). + + Must be + 'md5' (for a md5 hash control (best but slowest)), + 'crc32' (for a crc32 hash control (lightly less safe but faster)) + or 'strlen' (for a length only test (fastest)) + </entry> + </row> + <row> + <entry> + pearErrorMode + </entry> + <entry> + &type.int; + </entry> + <entry> + CACHE_LITE_ERROR_RETURN + </entry> + <entry> + pear error mode + (when raiseError is called) + (CACHE_LITE_ERROR_RETURN for just returning + a PEAR_Error object + or CACHE_LITE_ERROR_DIE for + immediate stop of the script (good for debug) ) + </entry> + </row> + <row> + <entry> + fileNameProtection + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + file Name protection + (if set to true, you can use any cache id or group name, + if set to false, it can be faster but cache ids and group + names will be used directly in cache file names so be carefull with + special characters...) + </entry> + </row> + <row> + <entry> + automaticSerialization + </entry> + <entry> + &type.bool; + </entry> + <entry> + &false; + </entry> + <entry> + enable / disable automatic serialization + + (it can be used to save directly datas + which aren't strings but it's slower) + </entry> + </row> + <row> + <entry> + memoryCaching + </entry> + <entry> + &type.bool; + </entry> + <entry> + &false; + </entry> + <entry> + enable / disable "Memory Caching" + + (NB : there is no lifetime for memory caching, + only the end of the script) + </entry> + </row> + <row> + <entry> + onlyMemoryCaching + </entry> + <entry> + &type.bool; + </entry> + <entry> + &false; + </entry> + <entry> + enable / disable "Only Memory Caching" + (if enabled, files are not used anymore) + </entry> + </row> + <row> + <entry> + memoryCachingLimit + </entry> + <entry> + &type.int; + </entry> + <entry> + 1000 + </entry> + <entry> + max number of records to store into memory caching + </entry> + </row> + <row> + <entry> + automaticCleaningFactor + </entry> + <entry> + &type.int; + </entry> + <entry> + 0 + </entry> + <entry> + Disable / Tune the automatic cleaning process. + + The automatic cleaning process destroy too old + (for the given life time) + cache files when a new cache file is written. + + 0 means "no automatic cache cleaning", + 1 means "systematic cache cleaning" (slow), + x>1 means "automatic cleaning randomly 1 times on x cache writes". + + A value between 20 and 200 is maybe a good start. + </entry> + </row> + <row> + <entry> + hashedDirectoryLevel + </entry> + <entry> + &type.int; + </entry> + <entry> + 0 + </entry> + <entry> + Set the hashed directory structure level. + + 0 means "no hashed directory structure", + 1 means "one level of directory", + 2 means "two levels"... + + This option can speed up Cache_Lite + only when you have many thousands of cache file. + + Only specific benchs can help you to choose the perfect + value for you. + + Maybe, 1 or 2 is a good start. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.throws"> + &title.throws; + <para> + <emphasis>throws</emphasis> no exceptions thrown + </para> + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.example"> + &title.example; + <example> + <title>Using most common options</title> + <programlisting role="php"> <![CDATA[ <?php require_once "Cache/Lite.php"; @@ -322,9 +351,9 @@ ?> ]]> - </programlisting> - </example> - </refsect1> + </programlisting> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/diff.php/peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml diff -u peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml:1.4 peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml:1.5 --- peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml:1.4 Wed Oct 5 14:30:43 2005 +++ peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml Tue Nov 1 12:17:44 2005 @@ -1,313 +1,342 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.caching.cache-lite.cache-lite.cache-lite"> - <refnamediv> - <refname>constructor <function>Cache_Lite::Cache_Lite</function></refname> - <refpurpose>Constructor</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Cache/Lite.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>void constructor <function>Cache_Lite::Cache_Lite</function></funcdef> - <paramdef>array <parameter> <optional>$options = array(NULL)</optional></parameter></paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.desc"> - &title.desc; - <para> - The constructor of the Cache_Lite core class. You can give an associative array - as an argument to set a lot of options. - </para> - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.param"> - &title.param; - <para> - <variablelist> - <varlistentry> - <term> - &type.array; - <parameter>$options</parameter> - </term> - <listitem> - <para> - associative array to set a lot of options - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - <para> - <table> - <title></title> - <tgroup cols="4"> - <thead> - <row> - <entry>Option</entry> - <entry>Data Type</entry> - <entry>Default Value</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry> - cacheDir - </entry> - <entry> - &type.string; - </entry> - <entry> - /tmp/ - </entry> - <entry> - directory where to put the cache file (with a trailing slash at the end) - </entry> - </row> - <row> - <entry> - caching - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - enable / disable caching - </entry> - </row> - <row> - <entry> - lifeTime - </entry> - <entry> - &type.int; - </entry> - <entry> - 3600 - </entry> - <entry> - cache lifetime in seconds - </entry> - </row> - <row> - <entry> - fileLocking - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - enable / disable fileLocking (can avoid cache corruption under bad - circumstances) - </entry> - </row> - <row> - <entry> - writeControl - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - enable / disable write control (enable write control will lightly slow - the cache writing but not the cache reading, write control can detect - some corrupt cache files but maybe it's not a perfect control) - </entry> - </row> - <row> - <entry> - readControl - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - enable / disable read control (if enabled, a control key is embeded - in cache file and this key is compared with the one calculated after - the reading) - </entry> - </row> - <row> - <entry> - readControlType - </entry> - <entry> - &type.string; - </entry> - <entry> - crc32 - </entry> - <entry> - Type of read control (only if read control is enabled). Must be 'md5' - (for a md5 hash control (best but slowest)), 'crc32' (for a crc32 hash - control (lightly less safe but faster)) or 'strlen' (for a length only - test (fastest)) - </entry> - </row> - <row> - <entry> - pearErrorMode - </entry> - <entry> - &type.int; - </entry> - <entry> - CACHE_LITE_ERROR_RETURN - </entry> - <entry> - pear error mode (when raiseError is called) (CACHE_LITE_ERROR_RETURN - for just returning a PEAR_Error object or CACHE_LITE_ERROR_DIE for - immediate stop of the script (good for debug)) - </entry> - </row> - <row> - <entry> - fileNameProtection - </entry> - <entry> - &type.bool; - </entry> - <entry> - &true; - </entry> - <entry> - file Name protection (if set to true, you can use any cache id or - group name, if set to false, it can be faster but cache ids and group - names will be used directly in cache file names so be carefull with - special characters...) - </entry> - </row> - <row> - <entry> - automaticSerialization - </entry> - <entry> - &type.bool; - </entry> - <entry> - &false; - </entry> - <entry> - enable / disable automatic serialization (it can be used to save - directly datas which aren't strings but it's slower) - </entry> - </row> - <row> - <entry> - memoryCaching - </entry> - <entry> - &type.bool; - </entry> - <entry> - &false; - </entry> - <entry> - enable / disable "Memory Caching" (NB : there is - no lifetime for memory caching, only the end of the script) - </entry> - </row> - <row> - <entry> - onlyMemoryCaching - </entry> - <entry> - &type.bool; - </entry> - <entry> - &false; - </entry> - <entry> - enable / disable "Only Memory Caching" (if enabled, - files are not used anymore) - </entry> - </row> - <row> - <entry> - memoryCachingLimit - </entry> - <entry> - &type.int; - </entry> - <entry> - 1000 - </entry> - <entry> - max number of records to store into memory caching - </entry> - </row> - <row> - <entry> - automaticCleaningFactor - </entry> - <entry> - &type.int; - </entry> - <entry> - 0 - </entry> - <entry> - Disable / Tune the automatic cleaning process. The - automatic cleaning process destroy too old (for the given life time) - cache files when a new cache file is written. 0 means "no automatic - cache cleaning", 1 means "systematic cache cleaning" (slow), x>1 means - "automatic cleaning randomly 1 times on x cache writes". A value - between 20 and 200 is maybe a good start. - </entry> - </row> - <row> - <entry> - hashedDirectoryLevel - </entry> - <entry> - &type.int; - </entry> - <entry> - 0 - </entry> - <entry> - Set the hashed directory structure level. 0 means - "no hashed directory structure", 1 means "one level of directory", 2 - means "two levels"... This option can speed up Cache_Lite only when you - have many thousands of cache file. Only specific benchs can help - you to choose the perfect value for you. Maybe, 1 or 2 is a good start. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.throws"> - &title.throws; - <para> - <emphasis>throws</emphasis> no exceptions thrown - </para> - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.example"> - &title.example; - <example> - <title>Using most common options</title> - <programlisting role="php"> + <refnamediv> + <refname>constructor <function>Cache_Lite::Cache_Lite</function></refname> + <refpurpose>Constructor</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Cache/Lite.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>void constructor <function>Cache_Lite::Cache_Lite</function></funcdef> + <paramdef>array <parameter> <optional>$options = array(NULL)</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.desc"> + &title.desc; + <para> + The constructor of the Cache_Lite core class. + + You can give an associative array as an argument to set a lot of options. + </para> + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.param"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.array; + <parameter>$options</parameter> + </term> + <listitem> + <para> + associative array to set a lot of options + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + <para> + <table> + <title></title> + <tgroup cols="4"> + <thead> + <row> + <entry>Option</entry> + <entry>Data Type</entry> + <entry>Default Value</entry> + <entry>Description</entry> + </row> + </thead> + <tbody> + <row> + <entry> + cacheDir + </entry> + <entry> + &type.string; + </entry> + <entry> + /tmp/ + </entry> + <entry> + directory where to put the cache file + (with a trailing slash at the end) + </entry> + </row> + <row> + <entry> + caching + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + enable / disable caching + </entry> + </row> + <row> + <entry> + lifeTime + </entry> + <entry> + &type.int; + </entry> + <entry> + 3600 + </entry> + <entry> + cache lifetime in seconds + </entry> + </row> + <row> + <entry> + fileLocking + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + enable / disable fileLocking. + Can avoid cache corruption under bad circumstances. + </entry> + </row> + <row> + <entry> + writeControl + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + enable / disable write control. + + Enable write control will lightly slow the cache writing + but not the cache reading. + + Write control can detect some corrupt cache files + but maybe it's not a perfect control. + </entry> + </row> + <row> + <entry> + readControl + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + enable / disable read control. + If enabled, a control key is embeded in cache file + and this key is compared with the one calculated after the reading + </entry> + </row> + <row> + <entry> + readControlType + </entry> + <entry> + &type.string; + </entry> + <entry> + crc32 + </entry> + <entry> + Type of read control (only if read control is enabled). + + Must be + 'md5' (for a md5 hash control (best but slowest)), + 'crc32' (for a crc32 hash control (lightly less safe but faster)) + or 'strlen' (for a length only test (fastest)) + </entry> + </row> + <row> + <entry> + pearErrorMode + </entry> + <entry> + &type.int; + </entry> + <entry> + CACHE_LITE_ERROR_RETURN + </entry> + <entry> + pear error mode + (when raiseError is called) + (CACHE_LITE_ERROR_RETURN for just returning + a PEAR_Error object + or CACHE_LITE_ERROR_DIE for + immediate stop of the script (good for debug) ) + </entry> + </row> + <row> + <entry> + fileNameProtection + </entry> + <entry> + &type.bool; + </entry> + <entry> + &true; + </entry> + <entry> + file Name protection + (if set to true, you can use any cache id or group name, + if set to false, it can be faster but cache ids and group + names will be used directly in cache file names so be carefull with + special characters...) + </entry> + </row> + <row> + <entry> + automaticSerialization + </entry> + <entry> + &type.bool; + </entry> + <entry> + &false; + </entry> + <entry> + enable / disable automatic serialization + + (it can be used to save directly datas + which aren't strings but it's slower) + </entry> + </row> + <row> + <entry> + memoryCaching + </entry> + <entry> + &type.bool; + </entry> + <entry> + &false; + </entry> + <entry> + enable / disable "Memory Caching" + + (NB : there is no lifetime for memory caching, + only the end of the script) + </entry> + </row> + <row> + <entry> + onlyMemoryCaching + </entry> + <entry> + &type.bool; + </entry> + <entry> + &false; + </entry> + <entry> + enable / disable "Only Memory Caching" + (if enabled, files are not used anymore) + </entry> + </row> + <row> + <entry> + memoryCachingLimit + </entry> + <entry> + &type.int; + </entry> + <entry> + 1000 + </entry> + <entry> + max number of records to store into memory caching + </entry> + </row> + <row> + <entry> + automaticCleaningFactor + </entry> + <entry> + &type.int; + </entry> + <entry> + 0 + </entry> + <entry> + Disable / Tune the automatic cleaning process. + + The automatic cleaning process destroy too old + (for the given life time) + cache files when a new cache file is written. + + 0 means "no automatic cache cleaning", + 1 means "systematic cache cleaning" (slow), + x>1 means "automatic cleaning randomly 1 times on x cache writes". + + A value between 20 and 200 is maybe a good start. + </entry> + </row> + <row> + <entry> + hashedDirectoryLevel + </entry> + <entry> + &type.int; + </entry> + <entry> + 0 + </entry> + <entry> + Set the hashed directory structure level. + + 0 means "no hashed directory structure", + 1 means "one level of directory", + 2 means "two levels"... + + This option can speed up Cache_Lite + only when you have many thousands of cache file. + + Only specific benchs can help you to choose the perfect + value for you. + + Maybe, 1 or 2 is a good start. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.throws"> + &title.throws; + <para> + <emphasis>throws</emphasis> no exceptions thrown + </para> + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.cache-lite.example"> + &title.example; + <example> + <title>Using most common options</title> + <programlisting role="php"> <![CDATA[ <?php require_once "Cache/Lite.php"; @@ -322,9 +351,9 @@ ?> ]]> - </programlisting> - </example> - </refsect1> + </programlisting> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: