Zend_Cache-Backends.xml 8.4 KB

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