cvs: peardoc /en/package/caching/cache-lite/cache-lite cache_lite.xml clean.xml
| From: | Fabien MARTY | Date: | Sun, 16 Jan 2005 20:41:22 +0000 |
| Subject: | cvs: peardoc /en/package/caching/cache-lite/cache-lite cache_lite.xml clean.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5441@lists.php.net to get a copy of this message | ||
fab Sun Jan 16 15:41:22 2005 EDT
Modified files:
/peardoc/en/package/caching/cache-lite/cache-lite cache_lite.xml
clean.xml
Log:
introducing 1.4.0beta1 new features
http://cvs.php.net/diff.php/peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml?r1=1.1&r2=1.2&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.1
peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml:1.2
--- peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml:1.1 Sat Apr 24 07:46:24 2004
+++ peardoc/en/package/caching/cache-lite/cache-lite/cache_lite.xml Sun Jan 16 15:41:22 2005
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.caching.cache-lite.cache-lite.cache-lite">
<refnamediv>
<refname>constructor
<function>Cache_Lite::Cache_Lite</function></refname>
@@ -251,6 +251,43 @@
[BETA QUALITY] max number of records to store into memory caching
</entry>
</row>
+ <row>
+ <entry>
+ automaticCleaningFactor
+ </entry>
+ <entry>
+ &type.int;
+ </entry>
+ <entry>
+ 0
+ </entry>
+ <entry>
+ [since 1.4.0beta1] 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>
+ [since 1.4.0beta1] 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>
http://cvs.php.net/diff.php/peardoc/en/package/caching/cache-lite/cache-lite/clean.xml?r1=1.1&r2=1.2&ty=u
Index: peardoc/en/package/caching/cache-lite/cache-lite/clean.xml
diff -u peardoc/en/package/caching/cache-lite/cache-lite/clean.xml:1.1
peardoc/en/package/caching/cache-lite/cache-lite/clean.xml:1.2
--- peardoc/en/package/caching/cache-lite/cache-lite/clean.xml:1.1 Sat Apr 24 07:46:24 2004
+++ peardoc/en/package/caching/cache-lite/cache-lite/clean.xml Sun Jan 16 15:41:22 2005
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.caching.cache-lite.cache-lite.clean">
<refnamediv>
<refname><function>Cache_Lite::clean</function></refname>
@@ -12,6 +12,7 @@
<funcprototype>
<funcdef>boolean
<function>Cache_Lite::clean</function></funcdef>
<paramdef>string <parameter> <optional>$group =
&false;</optional></parameter></paramdef>
+ <paramdef>string <parameter> <optional>$mode =
'ingroup';</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
@@ -30,10 +31,8 @@
<variablelist>
<varlistentry>
<term>
-
-
- &type.string;
- <parameter>$group</parameter>
+ &type.string;
+ <parameter>$group</parameter>
</term>
<listitem>
<para>
@@ -42,6 +41,22 @@
</listitem>
</varlistentry>
</variablelist>
+ <variablelist>
+ <varlistentry>
+ <term>
+ &type.string;
+ <parameter>$mode</parameter>
+ </term>
+ <listitem>
+ <para>
+ [since 1.4.0beta1] flush cache mode : 'old' (clean too old cache files
+ for the current lifetime), 'ingroup' (clean all cache files for the given
+ group), 'notingroup' (clean all the cache files except for the given
+ group)
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
</para>
</refsect1>
<refsect1 id="package.caching.cache-lite.cache-lite.clean.returns">