/documentation/manual/ar/module_specs/Zend_Cache-Backends.xml

https://github.com/decaoz/zf1 · XML · 202 lines · 198 code · 1 blank · 3 comment · 0 complexity · 420ba19a7b58c50249869ba146afd9ed MD5 · raw file

  1. <sect1 id="zend.cache.backends">
  2. <title>Zend_Cache backends</title>
  3. <sect2 id="zend.cache.backends.file">
  4. <title>Zend_Cache_Backend_File</title>
  5. <para>
  6. هذا الـ backend يقوم بحفظ الـ cache records فى ملفات (داخل مجلد يتم تحديده).
  7. </para>
  8. <para>
  9. الـ options المتوفرة
  10. </para>
  11. <table>
  12. <title>الـ options المتوفرة لـ Zend_Cache_Backend_File</title>
  13. <tgroup cols="4">
  14. <thead>
  15. <row>
  16. <entry>الـ Option</entry>
  17. <entry>الـ Data Type</entry>
  18. <entry>الـ Default Value</entry>
  19. <entry>الوصف</entry>
  20. </row>
  21. </thead>
  22. <tbody>
  23. <row>
  24. <entry><code>cacheDir</code></entry>
  25. <entry><code>string</code></entry>
  26. <entry><code>'/tmp/'</code></entry>
  27. <entry>
  28. المجلد حيث سيتم حفظ ملفات الـ cache
  29. </entry>
  30. </row>
  31. <row>
  32. <entry><code>fileLocking</code></entry>
  33. <entry><code>boolean</code></entry>
  34. <entry><code>true</code></entry>
  35. <entry>
  36. تفعيل او إيقاف خاصية الـ fileLocking : تساعد فى تجنب تلف ملفات الـ cache
  37. و لكن لا تساعد عند العمل على multithread webservers او نظام ملفات NFS...
  38. </entry>
  39. </row>
  40. <row>
  41. <entry><code>readControl</code></entry>
  42. <entry><code>boolean</code></entry>
  43. <entry><code>true</code></entry>
  44. <entry>
  45. تقوم بتفعيل او ايقاف الـ read control :
  46. إن تم تشغيله, سيتم اضافة control key فى ملف الـ cache و هذا الـ key "مفتاح"
  47. سيتم مقارنته مع الأخر الذى سيتم حسابه بعد قرائة الملف.
  48. </entry>
  49. </row>
  50. <row>
  51. <entry><code>readControlType</code></entry>
  52. <entry><code>string</code></entry>
  53. <entry><code>'crc32'</code></entry>
  54. <entry>
  55. نوع الـ read control (متوفر فقط إذا كانت read control مفعلة).
  56. القيم المتوفرة هى :
  57. "md5" الأفضل لكن الأبطء, "crc32" (اقل امانا لكن اسرع, الأختيار الأفضل),
  58. "strlen" لعمل اختبار طول فقط (الأسرع).
  59. </entry>
  60. </row>
  61. <row>
  62. <entry><code>hashedDirectoryLevel</code></entry>
  63. <entry><code>int</code></entry>
  64. <entry><code>0</code></entry>
  65. <entry>
  66. Hashed directory structure level : 0 تعنى "no hashed directory
  67. structure", 1 تعنى "one level of directory", 2 تعنى "two levels"...
  68. هذا الـ option يمكن ان يرفع من سرعة اداء عملية الـ cache و ذلك فقط إن كنت تعمل مع
  69. الاف من ملفات الـ cache. ربما بعض القياسات ستساعدك فى تحديد افضل قيمة مناسبة لك.
  70. ربما 1 او 2 تعتبر بداية جيدة.
  71. </entry>
  72. </row>
  73. <row>
  74. <entry><code>hashedDirectoryUmask</code></entry>
  75. <entry><code>int</code></entry>
  76. <entry><code>0700</code></entry>
  77. <entry>
  78. Umask للـ hashed directory structure
  79. </entry>
  80. </row>
  81. </tbody>
  82. </tgroup>
  83. </table>
  84. </sect2>
  85. <sect2 id="zend.cache.backends.sqlite">
  86. <title>Zend_Cache_Backend_Sqlite</title>
  87. <para>
  88. هذه الـ backend تقوم بحفظ الـ cache records فى قاعدة بيانات SQLite.
  89. </para>
  90. <para>
  91. الـ options المتوفرة:
  92. </para>
  93. <table>
  94. <title>الـ options المتوفرة لـ Zend_Cache_Backend_Sqlite</title>
  95. <tgroup cols="4">
  96. <thead>
  97. <row>
  98. <entry>الـ Option</entry>
  99. <entry>الـ Data Type</entry>
  100. <entry>الـ Default Value</entry>
  101. <entry>الوصف</entry>
  102. </row>
  103. </thead>
  104. <tbody>
  105. <row>
  106. <entry><code>cacheDBCompletePath (mandatory)</code></entry>
  107. <entry><code>string</code></entry>
  108. <entry><code>null</code></entry>
  109. <entry>
  110. المسار الكامل (مع اسم الملف) التى توجد به قاعدة بيانات SQLite.
  111. </entry>
  112. </row>
  113. <row>
  114. <entry><code>automaticVacuumFactor</code></entry>
  115. <entry><code>int</code></entry>
  116. <entry><code>10</code></entry>
  117. <entry>
  118. تقوم بـ إيقاف / إدارة عملية تنظيم الفراغات التلقائية.
  119. عملية تنظيم الفراغات التلقائية تقوم بعمل defragment لملف قاعدة البيانات
  120. (و تجعله أصغر) عند إستدعاء ()clean أو ()delete :
  121. و 0 تعنى إيقاف عملية تنظيم الفراغات التلقائية ;
  122. 1 تعنى تشغيل عملية الإدارة (عند إستدعاء ()delete أو ()clean ) ;
  123. x (integer) > 1 => ستتم عملية تنظيم الفراغات عشوائياً مرة لكل
  124. x مرة من إستدعاء ()clean أو ()delete .
  125. </entry>
  126. </row>
  127. </tbody>
  128. </tgroup>
  129. </table>
  130. </sect2>
  131. <sect2 id="zend.cache.backends.memcached">
  132. <title>Zend_Cache_Backend_Memcached</title>
  133. <para>
  134. هذه الـ backend تقوم بحفظ الـ cache records فى memcached server.
  135. <ulink url="http://www.danga.com/memcached/">memcached</ulink>
  136. عبارة عن نظام caching للبيانات فى الذاكرة و يتميز بكفائته العالية.
  137. لتستخدم هذا الـ backend انت تحتاج memcached daemon و
  138. <ulink url="http://pecl.php.net/package/memcache">الـ memcache PECL extension</ulink>.
  139. </para>
  140. <para>
  141. احترس: مع هذا الـ backend الـ tags غير مدعومة الى الأن .
  142. (لأن "doNotTestCacheValidity=true")
  143. </para>
  144. <para>
  145. الـ options المتوفرة :
  146. </para>
  147. <table>
  148. <title> الـ options المتوفرة لـ Zend_Cache_Backend_Memcached</title>
  149. <tgroup cols="4">
  150. <thead>
  151. <row>
  152. <entry>الـ Option</entry>
  153. <entry>الـ Data Type</entry>
  154. <entry>الـ Default Value</entry>
  155. <entry>الوصف</entry>
  156. </row>
  157. </thead>
  158. <tbody>
  159. <row>
  160. <entry><code>servers</code></entry>
  161. <entry><code>array</code></entry>
  162. <entry><code>array(array('host' => 'localhost','port' => 11211, 'persistent' => true))</code></entry>
  163. <entry>
  164. An array of memcached servers ; each memcached server is described by an associative array :
  165. 'host' => (string) : اسم الـ memcached server,
  166. 'port' => (int) : الـ port الخاص بالـ memcached server,
  167. 'persistent' => (bool) : استخدام او عدم استخدام الـ persistant connections مع هذا الـ server.
  168. </entry>
  169. </row>
  170. <row>
  171. <entry><code>compression</code></entry>
  172. <entry><code>boolean</code></entry>
  173. <entry><code>flase</code></entry>
  174. <entry>
  175. اعطها القيمة true إن اردت عمل ضغط للبيانت on-the-fly (إن صح التعبير "على الطاير").
  176. </entry>
  177. </row>
  178. </tbody>
  179. </tgroup>
  180. </table>
  181. </sect2>
  182. <sect2 id="zend.cache.backends.apc">
  183. <title>Zend_Cache_Backend_APC</title>
  184. <para>
  185. هذه الـ backend تقوم بحفظ الـ cache records فى ذاكرة مشتركة من خلال الـ extension
  186. المسمى
  187. <ulink url="http://pecl.php.net/package/APC">APC</ulink> (Alternative PHP Cache).
  188. (بالطبع ستحتاج هذه الـ extension لتستطيع استخدام هذه الـ backend)
  189. </para>
  190. <para>
  191. احترس: مع هذا الـ backend الـ tags غير مدعومة الى الأن .
  192. (لأن "doNotTestCacheValidity=true")
  193. </para>
  194. <para>
  195. لا يوجد options لهذه الـ backend
  196. </para>
  197. </sect2>
  198. </sect1>
  199. <!--
  200. vim:se ts=4 sw=4 et:
  201. -->