ソースを参照

[ZF-7172]How to instantiate ZendServer backends

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17743 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 年 前
コミット
4e0b3ea1c3

+ 9 - 1
documentation/manual/ja/module_specs/Zend_Cache-Backends.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 17717 -->
+<!-- EN-Revision: 17742 -->
 <sect1 id="zend.cache.backends">
     <title><classname>Zend_Cache</classname> のバックエンド</title>
     <para>
@@ -479,6 +479,14 @@ $cache = Zend_Cache::factory('Core', 'Two Levels');
              コマンドラインでスクリプトを実行した場合は動作しません。
         </para>
         <para>
+            <methodname>Zend_Cache::factory()</methodname> メソッドでこのバックエンドを指定する場合は、
+            パラメータ <emphasis>customBackendNaming</emphasis> を <constant>TRUE</constant> とします。
+        </para>
+        <programlisting language="php"><![CDATA[
+$cache = Zend_Cache::factory('Core', 'Zend_Cache_Backend_ZendServer_Disk', $frontendOptions,
+$backendOptions, false, true);
+]]></programlisting>
+        <para>
             このバックエンドにはオプションはありません。
         </para>
     </sect2>