464 |
jpm |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
5 |
<meta name="generator" content="ApiGen 2.8.0">
|
|
|
6 |
|
|
|
7 |
<title>Class CacheSqlite | TBFramework - v0.4</title>
|
|
|
8 |
|
|
|
9 |
<script type="text/javascript" src="resources/combined.js?4205936287"></script>
|
|
|
10 |
<script type="text/javascript" src="elementlist.js?1964084359"></script>
|
|
|
11 |
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360">
|
|
|
12 |
|
|
|
13 |
</head>
|
|
|
14 |
|
|
|
15 |
<body>
|
|
|
16 |
<div id="left">
|
|
|
17 |
<div id="menu">
|
|
|
18 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
<div id="groups">
|
|
|
22 |
<h3>Packages</h3>
|
|
|
23 |
<ul>
|
|
|
24 |
<li><a href="package-Framework.html">Framework</a>
|
|
|
25 |
</li>
|
|
|
26 |
<li class="active"><a href="package-None.html">None</a>
|
|
|
27 |
</li>
|
|
|
28 |
<li><a href="package-PHP.html">PHP</a>
|
|
|
29 |
</li>
|
|
|
30 |
<li><a href="package-Utilitaire.html">Utilitaire</a>
|
|
|
31 |
</li>
|
|
|
32 |
</ul>
|
|
|
33 |
</div>
|
|
|
34 |
|
|
|
35 |
<hr>
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
<div id="elements">
|
|
|
39 |
<h3>Classes</h3>
|
|
|
40 |
<ul>
|
|
|
41 |
<li><a href="class-CacheFichier.html">CacheFichier</a></li>
|
|
|
42 |
<li class="active"><a href="class-CacheSqlite.html">CacheSqlite</a></li>
|
|
|
43 |
<li><a href="class-MonScript.html">MonScript</a></li>
|
|
|
44 |
</ul>
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
</div>
|
|
|
51 |
</div>
|
|
|
52 |
</div>
|
|
|
53 |
|
|
|
54 |
<div id="splitter"></div>
|
|
|
55 |
|
|
|
56 |
<div id="right">
|
|
|
57 |
<div id="rightInner">
|
|
|
58 |
<form id="search">
|
|
|
59 |
<input type="hidden" name="cx" value="">
|
|
|
60 |
<input type="hidden" name="ie" value="UTF-8">
|
|
|
61 |
<input type="text" name="q" class="text">
|
|
|
62 |
<input type="submit" value="Search">
|
|
|
63 |
</form>
|
|
|
64 |
|
|
|
65 |
<div id="navigation">
|
|
|
66 |
<ul>
|
|
|
67 |
<li>
|
|
|
68 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
69 |
</li>
|
|
|
70 |
<li>
|
|
|
71 |
<a href="package-None.html" title="Summary of None"><span>Package</span></a>
|
|
|
72 |
</li>
|
|
|
73 |
<li class="active">
|
|
|
74 |
<span>Class</span> </li>
|
|
|
75 |
</ul>
|
|
|
76 |
<ul>
|
|
|
77 |
<li>
|
|
|
78 |
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
|
|
|
79 |
</li>
|
|
|
80 |
<li>
|
|
|
81 |
<a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
|
|
|
82 |
</li>
|
|
|
83 |
<li>
|
|
|
84 |
<a href="todo.html" title="Todo list"><span>Todo</span></a>
|
|
|
85 |
</li>
|
|
|
86 |
</ul>
|
|
|
87 |
<ul>
|
|
|
88 |
</ul>
|
|
|
89 |
</div>
|
|
|
90 |
|
|
|
91 |
<div id="content" class="class">
|
|
|
92 |
<h1>Class CacheSqlite</h1>
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
<div class="info">
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
<b>Located at</b> <a href="source-class-CacheSqlite.html#2-616" title="Go to source code">framework/CacheSqlite.php</a><br>
|
|
|
111 |
</div>
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
<table class="summary" id="methods">
|
|
|
116 |
<caption>Methods summary</caption>
|
|
|
117 |
<tr data-order="__construct" id="___construct">
|
|
|
118 |
|
|
|
119 |
<td class="attributes"><code>
|
|
|
120 |
public
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
</code>
|
|
|
124 |
</td>
|
|
|
125 |
|
|
|
126 |
<td class="name"><div>
|
|
|
127 |
<a class="anchor" href="#___construct">#</a>
|
|
|
128 |
<code><a href="source-class-CacheSqlite.html#41-57" title="Go to source code">__construct</a>( <span>array <var>$options</var> = <span class="php-keyword1">array</span>()</span>, <span><code><a href="class-Cache.html">Cache</a></code> <var>$cache</var></span> )</code>
|
|
|
129 |
|
|
|
130 |
<div class="description short">
|
|
|
131 |
|
|
|
132 |
<p>Constructor</p>
|
|
|
133 |
|
|
|
134 |
</div>
|
|
|
135 |
|
|
|
136 |
<div class="description detailed hidden">
|
|
|
137 |
|
|
|
138 |
<p>Constructor</p>
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
<h4>Parameters</h4>
|
|
|
143 |
<div class="list"><dl>
|
|
|
144 |
<dt><var>$options</var></dt>
|
|
|
145 |
<dd><code>array</code><br>$options Associative array of options</dd>
|
|
|
146 |
<dt><var>$cache</var></dt>
|
|
|
147 |
<dd></dd>
|
|
|
148 |
</dl></div>
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
<h4>Throws</h4>
|
|
|
152 |
<div class="list">
|
|
|
153 |
<code>Zend_cache_Exception</code><br>
|
|
|
154 |
</div>
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
|
158 |
</div>
|
|
|
159 |
</div></td>
|
|
|
160 |
</tr>
|
|
|
161 |
<tr data-order="__destruct" id="___destruct">
|
|
|
162 |
|
|
|
163 |
<td class="attributes"><code>
|
|
|
164 |
public
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
</code>
|
|
|
168 |
</td>
|
|
|
169 |
|
|
|
170 |
<td class="name"><div>
|
|
|
171 |
<a class="anchor" href="#___destruct">#</a>
|
|
|
172 |
<code><a href="source-class-CacheSqlite.html#67-74" title="Go to source code">__destruct</a>( )</code>
|
|
|
173 |
|
|
|
174 |
<div class="description short">
|
|
|
175 |
|
|
|
176 |
<p>Destructor</p>
|
|
|
177 |
|
|
|
178 |
</div>
|
|
|
179 |
|
|
|
180 |
<div class="description detailed hidden">
|
|
|
181 |
|
|
|
182 |
<p>Destructor</p>
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
</div>
|
|
|
192 |
</div></td>
|
|
|
193 |
</tr>
|
|
|
194 |
<tr data-order="setEmplacement" id="_setEmplacement">
|
|
|
195 |
|
|
|
196 |
<td class="attributes"><code>
|
|
|
197 |
public
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
</code>
|
|
|
201 |
</td>
|
|
|
202 |
|
|
|
203 |
<td class="name"><div>
|
|
|
204 |
<a class="anchor" href="#_setEmplacement">#</a>
|
|
|
205 |
<code><a href="source-class-CacheSqlite.html#88-95" title="Go to source code">setEmplacement</a>( <span>mixed <var>$emplacement</var></span> )</code>
|
|
|
206 |
|
|
|
207 |
<div class="description short">
|
|
|
208 |
|
|
|
209 |
</div>
|
|
|
210 |
|
|
|
211 |
<div class="description detailed hidden">
|
|
|
212 |
|
|
|
213 |
|
|
|
214 |
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
|
|
|
218 |
|
|
|
219 |
|
|
|
220 |
</div>
|
|
|
221 |
</div></td>
|
|
|
222 |
</tr>
|
|
|
223 |
<tr data-order="charger" id="_charger">
|
|
|
224 |
|
|
|
225 |
<td class="attributes"><code>
|
|
|
226 |
public
|
|
|
227 |
string|false
|
|
|
228 |
|
|
|
229 |
</code>
|
|
|
230 |
</td>
|
|
|
231 |
|
|
|
232 |
<td class="name"><div>
|
|
|
233 |
<a class="anchor" href="#_charger">#</a>
|
|
|
234 |
<code><a href="source-class-CacheSqlite.html#97-111" title="Go to source code">charger</a>( <span>string <var>$id</var></span>, <span>boolean <var>$ne_pas_tester_validiter_du_cache</var> = <span class="php-keyword1">false</span></span> )</code>
|
|
|
235 |
|
|
|
236 |
<div class="description short">
|
|
|
237 |
|
|
|
238 |
<p>Test if a cache is available for the given id and (if yes) return it (false
|
|
|
239 |
else)</p>
|
|
|
240 |
|
|
|
241 |
</div>
|
|
|
242 |
|
|
|
243 |
<div class="description detailed hidden">
|
|
|
244 |
|
|
|
245 |
<p>Test if a cache is available for the given id and (if yes) return it (false
|
|
|
246 |
else)</p>
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
<h4>Parameters</h4>
|
|
|
251 |
<div class="list"><dl>
|
|
|
252 |
<dt><var>$id</var></dt>
|
|
|
253 |
<dd><code>string</code><br>$id Cache id</dd>
|
|
|
254 |
<dt><var>$ne_pas_tester_validiter_du_cache</var></dt>
|
|
|
255 |
<dd><code>boolean</code><br>$doNotTestCacheValidity If set to true, the cache validity won't be tested</dd>
|
|
|
256 |
</dl></div>
|
|
|
257 |
|
|
|
258 |
<h4>Returns</h4>
|
|
|
259 |
<div class="list">
|
|
|
260 |
<code>string|false</code><br>Cached datas<br>
|
|
|
261 |
</div>
|
|
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
|
266 |
</div>
|
|
|
267 |
</div></td>
|
|
|
268 |
</tr>
|
|
|
269 |
<tr data-order="tester" id="_tester">
|
|
|
270 |
|
|
|
271 |
<td class="attributes"><code>
|
|
|
272 |
public
|
|
|
273 |
mixed|false
|
|
|
274 |
|
|
|
275 |
</code>
|
|
|
276 |
</td>
|
|
|
277 |
|
|
|
278 |
<td class="name"><div>
|
|
|
279 |
<a class="anchor" href="#_tester">#</a>
|
|
|
280 |
<code><a href="source-class-CacheSqlite.html#113-125" title="Go to source code">tester</a>( <span>string <var>$id</var></span> )</code>
|
|
|
281 |
|
|
|
282 |
<div class="description short">
|
|
|
283 |
|
|
|
284 |
<p>Test if a cache is available or not (for the given id)</p>
|
|
|
285 |
|
|
|
286 |
</div>
|
|
|
287 |
|
|
|
288 |
<div class="description detailed hidden">
|
|
|
289 |
|
|
|
290 |
<p>Test if a cache is available or not (for the given id)</p>
|
|
|
291 |
|
|
|
292 |
|
|
|
293 |
|
|
|
294 |
<h4>Parameters</h4>
|
|
|
295 |
<div class="list"><dl>
|
|
|
296 |
<dt><var>$id</var></dt>
|
|
|
297 |
<dd><code>string</code><br>$id Cache id</dd>
|
|
|
298 |
</dl></div>
|
|
|
299 |
|
|
|
300 |
<h4>Returns</h4>
|
|
|
301 |
<div class="list">
|
|
|
302 |
<code>mixed|false</code><br>(a cache is not available) or "last modified" timestamp (int) of the available
|
|
|
303 |
cache record<br>
|
|
|
304 |
</div>
|
|
|
305 |
|
|
|
306 |
|
|
|
307 |
|
|
|
308 |
|
|
|
309 |
</div>
|
|
|
310 |
</div></td>
|
|
|
311 |
</tr>
|
|
|
312 |
<tr data-order="sauver" id="_sauver">
|
|
|
313 |
|
|
|
314 |
<td class="attributes"><code>
|
|
|
315 |
public
|
|
|
316 |
boolean
|
|
|
317 |
|
|
|
318 |
</code>
|
|
|
319 |
</td>
|
|
|
320 |
|
|
|
321 |
<td class="name"><div>
|
|
|
322 |
<a class="anchor" href="#_sauver">#</a>
|
|
|
323 |
<code><a href="source-class-CacheSqlite.html#127-162" title="Go to source code">sauver</a>( <span>string <var>$donnees</var></span>, <span>string <var>$id</var></span>, <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span>, <span>integer <var>$duree_vie_specifique</var> = <span class="php-keyword1">false</span></span> )</code>
|
|
|
324 |
|
|
|
325 |
<div class="description short">
|
|
|
326 |
|
|
|
327 |
<p>Save some string datas into a cache record</p>
|
|
|
328 |
|
|
|
329 |
</div>
|
|
|
330 |
|
|
|
331 |
<div class="description detailed hidden">
|
|
|
332 |
|
|
|
333 |
<p>Save some string datas into a cache record</p>
|
|
|
334 |
|
|
|
335 |
<p>Note : $data is always "string" (serialization is done by the core not by the
|
|
|
336 |
backend)</p>
|
|
|
337 |
|
|
|
338 |
|
|
|
339 |
|
|
|
340 |
<h4>Parameters</h4>
|
|
|
341 |
<div class="list"><dl>
|
|
|
342 |
<dt><var>$donnees</var></dt>
|
|
|
343 |
<dd><code>string</code><br>$data Datas to cache</dd>
|
|
|
344 |
<dt><var>$id</var></dt>
|
|
|
345 |
<dd><code>string</code><br>$id Cache id</dd>
|
|
|
346 |
<dt><var>$tags</var></dt>
|
|
|
347 |
<dd><code>array</code><br>$tags Array of strings, the cache record will be tagged by each string entry</dd>
|
|
|
348 |
<dt><var>$duree_vie_specifique</var></dt>
|
|
|
349 |
<dd><code>integer</code><br>$specificLifetime If != false, set a specific lifetime for this cache record
|
|
|
350 |
(null => infinite lifetime)</dd>
|
|
|
351 |
</dl></div>
|
|
|
352 |
|
|
|
353 |
<h4>Returns</h4>
|
|
|
354 |
<div class="list">
|
|
|
355 |
<code>boolean</code><br>True if no problem<br>
|
|
|
356 |
</div>
|
|
|
357 |
|
|
|
358 |
<h4>Throws</h4>
|
|
|
359 |
<div class="list">
|
|
|
360 |
<code>Zend_Cache_Exception</code><br>
|
|
|
361 |
</div>
|
|
|
362 |
|
|
|
363 |
|
|
|
364 |
|
|
|
365 |
</div>
|
|
|
366 |
</div></td>
|
|
|
367 |
</tr>
|
|
|
368 |
<tr data-order="supprimer" id="_supprimer">
|
|
|
369 |
|
|
|
370 |
<td class="attributes"><code>
|
|
|
371 |
public
|
|
|
372 |
boolean
|
|
|
373 |
|
|
|
374 |
</code>
|
|
|
375 |
</td>
|
|
|
376 |
|
|
|
377 |
<td class="name"><div>
|
|
|
378 |
<a class="anchor" href="#_supprimer">#</a>
|
|
|
379 |
<code><a href="source-class-CacheSqlite.html#164-178" title="Go to source code">supprimer</a>( <span>string <var>$id</var></span> )</code>
|
|
|
380 |
|
|
|
381 |
<div class="description short">
|
|
|
382 |
|
|
|
383 |
<p>Remove a cache record</p>
|
|
|
384 |
|
|
|
385 |
</div>
|
|
|
386 |
|
|
|
387 |
<div class="description detailed hidden">
|
|
|
388 |
|
|
|
389 |
<p>Remove a cache record</p>
|
|
|
390 |
|
|
|
391 |
|
|
|
392 |
|
|
|
393 |
<h4>Parameters</h4>
|
|
|
394 |
<div class="list"><dl>
|
|
|
395 |
<dt><var>$id</var></dt>
|
|
|
396 |
<dd><code>string</code><br>$id Cache id</dd>
|
|
|
397 |
</dl></div>
|
|
|
398 |
|
|
|
399 |
<h4>Returns</h4>
|
|
|
400 |
<div class="list">
|
|
|
401 |
<code>boolean</code><br>True if no problem<br>
|
|
|
402 |
</div>
|
|
|
403 |
|
|
|
404 |
|
|
|
405 |
|
|
|
406 |
|
|
|
407 |
</div>
|
|
|
408 |
</div></td>
|
|
|
409 |
</tr>
|
|
|
410 |
<tr data-order="nettoyer" id="_nettoyer">
|
|
|
411 |
|
|
|
412 |
<td class="attributes"><code>
|
|
|
413 |
public
|
|
|
414 |
boolean
|
|
|
415 |
|
|
|
416 |
</code>
|
|
|
417 |
</td>
|
|
|
418 |
|
|
|
419 |
<td class="name"><div>
|
|
|
420 |
<a class="anchor" href="#_nettoyer">#</a>
|
|
|
421 |
<code><a href="source-class-CacheSqlite.html#180-202" title="Go to source code">nettoyer</a>( <span>string <var>$mode</var> = <code><a href="class-Cache.html#NETTOYAGE_MODE_TOUS">Cache::<b>NETTOYAGE_MODE_TOUS</b></a></code></span>, <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
|
|
|
422 |
|
|
|
423 |
<div class="description short">
|
|
|
424 |
|
|
|
425 |
<p>Clean some cache records</p>
|
|
|
426 |
|
|
|
427 |
</div>
|
|
|
428 |
|
|
|
429 |
<div class="description detailed hidden">
|
|
|
430 |
|
|
|
431 |
<p>Clean some cache records</p>
|
|
|
432 |
|
|
|
433 |
<p>Available modes are : Zend_Cache::CLEANING_MODE_ALL (default) => remove
|
|
|
434 |
all cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_OLD => remove
|
|
|
435 |
too old cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_MATCHING_TAG
|
|
|
436 |
=> remove cache entries matching all given tags ($tags can be an array of
|
|
|
437 |
strings or a single string) Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG =>
|
|
|
438 |
remove cache entries not {matching one of the given tags} ($tags can be an array
|
|
|
439 |
of strings or a single string) Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG =>
|
|
|
440 |
remove cache entries matching any given tags ($tags can be an array of strings
|
|
|
441 |
or a single string)</p>
|
|
|
442 |
|
|
|
443 |
|
|
|
444 |
|
|
|
445 |
<h4>Parameters</h4>
|
|
|
446 |
<div class="list"><dl>
|
|
|
447 |
<dt><var>$mode</var></dt>
|
|
|
448 |
<dd><code>string</code><br>$mode Clean mode</dd>
|
|
|
449 |
<dt><var>$tags</var></dt>
|
|
|
450 |
<dd><code>array</code><br>$tags Array of tags</dd>
|
|
|
451 |
</dl></div>
|
|
|
452 |
|
|
|
453 |
<h4>Returns</h4>
|
|
|
454 |
<div class="list">
|
|
|
455 |
<code>boolean</code><br>True if no problem<br>
|
|
|
456 |
</div>
|
|
|
457 |
|
|
|
458 |
|
|
|
459 |
|
|
|
460 |
|
|
|
461 |
</div>
|
|
|
462 |
</div></td>
|
|
|
463 |
</tr>
|
|
|
464 |
<tr data-order="getIds" id="_getIds">
|
|
|
465 |
|
|
|
466 |
<td class="attributes"><code>
|
|
|
467 |
public
|
|
|
468 |
array
|
|
|
469 |
|
|
|
470 |
</code>
|
|
|
471 |
</td>
|
|
|
472 |
|
|
|
473 |
<td class="name"><div>
|
|
|
474 |
<a class="anchor" href="#_getIds">#</a>
|
|
|
475 |
<code><a href="source-class-CacheSqlite.html#204-217" title="Go to source code">getIds</a>( )</code>
|
|
|
476 |
|
|
|
477 |
<div class="description short">
|
|
|
478 |
|
|
|
479 |
<p>Return an array of stored cache ids</p>
|
|
|
480 |
|
|
|
481 |
</div>
|
|
|
482 |
|
|
|
483 |
<div class="description detailed hidden">
|
|
|
484 |
|
|
|
485 |
<p>Return an array of stored cache ids</p>
|
|
|
486 |
|
|
|
487 |
|
|
|
488 |
|
|
|
489 |
|
|
|
490 |
<h4>Returns</h4>
|
|
|
491 |
<div class="list">
|
|
|
492 |
<code>array</code><br>array of stored cache ids (string)<br>
|
|
|
493 |
</div>
|
|
|
494 |
|
|
|
495 |
|
|
|
496 |
|
|
|
497 |
|
|
|
498 |
</div>
|
|
|
499 |
</div></td>
|
|
|
500 |
</tr>
|
|
|
501 |
<tr data-order="getTags" id="_getTags">
|
|
|
502 |
|
|
|
503 |
<td class="attributes"><code>
|
|
|
504 |
public
|
|
|
505 |
array
|
|
|
506 |
|
|
|
507 |
</code>
|
|
|
508 |
</td>
|
|
|
509 |
|
|
|
510 |
<td class="name"><div>
|
|
|
511 |
<a class="anchor" href="#_getTags">#</a>
|
|
|
512 |
<code><a href="source-class-CacheSqlite.html#219-232" title="Go to source code">getTags</a>( )</code>
|
|
|
513 |
|
|
|
514 |
<div class="description short">
|
|
|
515 |
|
|
|
516 |
<p>Return an array of stored tags</p>
|
|
|
517 |
|
|
|
518 |
</div>
|
|
|
519 |
|
|
|
520 |
<div class="description detailed hidden">
|
|
|
521 |
|
|
|
522 |
<p>Return an array of stored tags</p>
|
|
|
523 |
|
|
|
524 |
|
|
|
525 |
|
|
|
526 |
|
|
|
527 |
<h4>Returns</h4>
|
|
|
528 |
<div class="list">
|
|
|
529 |
<code>array</code><br>array of stored tags (string)<br>
|
|
|
530 |
</div>
|
|
|
531 |
|
|
|
532 |
|
|
|
533 |
|
|
|
534 |
|
|
|
535 |
</div>
|
|
|
536 |
</div></td>
|
|
|
537 |
</tr>
|
|
|
538 |
<tr data-order="getIdsAvecLesTags" id="_getIdsAvecLesTags">
|
|
|
539 |
|
|
|
540 |
<td class="attributes"><code>
|
|
|
541 |
public
|
|
|
542 |
array
|
|
|
543 |
|
|
|
544 |
</code>
|
|
|
545 |
</td>
|
|
|
546 |
|
|
|
547 |
<td class="name"><div>
|
|
|
548 |
<a class="anchor" href="#_getIdsAvecLesTags">#</a>
|
|
|
549 |
<code><a href="source-class-CacheSqlite.html#234-270" title="Go to source code">getIdsAvecLesTags</a>( <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
|
|
|
550 |
|
|
|
551 |
<div class="description short">
|
|
|
552 |
|
|
|
553 |
<p>Return an array of stored cache ids which match given tags</p>
|
|
|
554 |
|
|
|
555 |
</div>
|
|
|
556 |
|
|
|
557 |
<div class="description detailed hidden">
|
|
|
558 |
|
|
|
559 |
<p>Return an array of stored cache ids which match given tags</p>
|
|
|
560 |
|
|
|
561 |
<p>In case of multiple tags, a logical AND is made between tags</p>
|
|
|
562 |
|
|
|
563 |
|
|
|
564 |
|
|
|
565 |
<h4>Parameters</h4>
|
|
|
566 |
<div class="list"><dl>
|
|
|
567 |
<dt><var>$tags</var></dt>
|
|
|
568 |
<dd><code>array</code><br>$tags array of tags</dd>
|
|
|
569 |
</dl></div>
|
|
|
570 |
|
|
|
571 |
<h4>Returns</h4>
|
|
|
572 |
<div class="list">
|
|
|
573 |
<code>array</code><br>array of matching cache ids (string)<br>
|
|
|
574 |
</div>
|
|
|
575 |
|
|
|
576 |
|
|
|
577 |
|
|
|
578 |
|
|
|
579 |
</div>
|
|
|
580 |
</div></td>
|
|
|
581 |
</tr>
|
|
|
582 |
<tr data-order="getIdsSansLesTags" id="_getIdsSansLesTags">
|
|
|
583 |
|
|
|
584 |
<td class="attributes"><code>
|
|
|
585 |
public
|
|
|
586 |
array
|
|
|
587 |
|
|
|
588 |
</code>
|
|
|
589 |
</td>
|
|
|
590 |
|
|
|
591 |
<td class="name"><div>
|
|
|
592 |
<a class="anchor" href="#_getIdsSansLesTags">#</a>
|
|
|
593 |
<code><a href="source-class-CacheSqlite.html#272-302" title="Go to source code">getIdsSansLesTags</a>( <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
|
|
|
594 |
|
|
|
595 |
<div class="description short">
|
|
|
596 |
|
|
|
597 |
<p>Return an array of stored cache ids which don't match given tags</p>
|
|
|
598 |
|
|
|
599 |
</div>
|
|
|
600 |
|
|
|
601 |
<div class="description detailed hidden">
|
|
|
602 |
|
|
|
603 |
<p>Return an array of stored cache ids which don't match given tags</p>
|
|
|
604 |
|
|
|
605 |
<p>In case of multiple tags, a logical OR is made between tags</p>
|
|
|
606 |
|
|
|
607 |
|
|
|
608 |
|
|
|
609 |
<h4>Parameters</h4>
|
|
|
610 |
<div class="list"><dl>
|
|
|
611 |
<dt><var>$tags</var></dt>
|
|
|
612 |
<dd><code>array</code><br>$tags array of tags</dd>
|
|
|
613 |
</dl></div>
|
|
|
614 |
|
|
|
615 |
<h4>Returns</h4>
|
|
|
616 |
<div class="list">
|
|
|
617 |
<code>array</code><br>array of not matching cache ids (string)<br>
|
|
|
618 |
</div>
|
|
|
619 |
|
|
|
620 |
|
|
|
621 |
|
|
|
622 |
|
|
|
623 |
</div>
|
|
|
624 |
</div></td>
|
|
|
625 |
</tr>
|
|
|
626 |
<tr data-order="getIdsAvecUnTag" id="_getIdsAvecUnTag">
|
|
|
627 |
|
|
|
628 |
<td class="attributes"><code>
|
|
|
629 |
public
|
|
|
630 |
array
|
|
|
631 |
|
|
|
632 |
</code>
|
|
|
633 |
</td>
|
|
|
634 |
|
|
|
635 |
<td class="name"><div>
|
|
|
636 |
<a class="anchor" href="#_getIdsAvecUnTag">#</a>
|
|
|
637 |
<code><a href="source-class-CacheSqlite.html#304-340" title="Go to source code">getIdsAvecUnTag</a>( <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
|
|
|
638 |
|
|
|
639 |
<div class="description short">
|
|
|
640 |
|
|
|
641 |
<p>Return an array of stored cache ids which match any given tags</p>
|
|
|
642 |
|
|
|
643 |
</div>
|
|
|
644 |
|
|
|
645 |
<div class="description detailed hidden">
|
|
|
646 |
|
|
|
647 |
<p>Return an array of stored cache ids which match any given tags</p>
|
|
|
648 |
|
|
|
649 |
<p>In case of multiple tags, a logical AND is made between tags</p>
|
|
|
650 |
|
|
|
651 |
|
|
|
652 |
|
|
|
653 |
<h4>Parameters</h4>
|
|
|
654 |
<div class="list"><dl>
|
|
|
655 |
<dt><var>$tags</var></dt>
|
|
|
656 |
<dd><code>array</code><br>$tags array of tags</dd>
|
|
|
657 |
</dl></div>
|
|
|
658 |
|
|
|
659 |
<h4>Returns</h4>
|
|
|
660 |
<div class="list">
|
|
|
661 |
<code>array</code><br>array of any matching cache ids (string)<br>
|
|
|
662 |
</div>
|
|
|
663 |
|
|
|
664 |
|
|
|
665 |
|
|
|
666 |
|
|
|
667 |
</div>
|
|
|
668 |
</div></td>
|
|
|
669 |
</tr>
|
|
|
670 |
<tr data-order="getPourcentageRemplissage" id="_getPourcentageRemplissage">
|
|
|
671 |
|
|
|
672 |
<td class="attributes"><code>
|
|
|
673 |
public
|
|
|
674 |
integer
|
|
|
675 |
|
|
|
676 |
</code>
|
|
|
677 |
</td>
|
|
|
678 |
|
|
|
679 |
<td class="name"><div>
|
|
|
680 |
<a class="anchor" href="#_getPourcentageRemplissage">#</a>
|
|
|
681 |
<code><a href="source-class-CacheSqlite.html#342-360" title="Go to source code">getPourcentageRemplissage</a>( )</code>
|
|
|
682 |
|
|
|
683 |
<div class="description short">
|
|
|
684 |
|
|
|
685 |
<p>Return the filling percentage of the backend storage</p>
|
|
|
686 |
|
|
|
687 |
</div>
|
|
|
688 |
|
|
|
689 |
<div class="description detailed hidden">
|
|
|
690 |
|
|
|
691 |
<p>Return the filling percentage of the backend storage</p>
|
|
|
692 |
|
|
|
693 |
|
|
|
694 |
|
|
|
695 |
|
|
|
696 |
<h4>Returns</h4>
|
|
|
697 |
<div class="list">
|
|
|
698 |
<code>integer</code><br>integer between 0 and 100<br>
|
|
|
699 |
</div>
|
|
|
700 |
|
|
|
701 |
<h4>Throws</h4>
|
|
|
702 |
<div class="list">
|
|
|
703 |
<code>Zend_Cache_Exception</code><br>
|
|
|
704 |
</div>
|
|
|
705 |
|
|
|
706 |
|
|
|
707 |
|
|
|
708 |
</div>
|
|
|
709 |
</div></td>
|
|
|
710 |
</tr>
|
|
|
711 |
<tr data-order="getMetadonnees" id="_getMetadonnees">
|
|
|
712 |
|
|
|
713 |
<td class="attributes"><code>
|
|
|
714 |
public
|
|
|
715 |
array
|
|
|
716 |
|
|
|
717 |
</code>
|
|
|
718 |
</td>
|
|
|
719 |
|
|
|
720 |
<td class="name"><div>
|
|
|
721 |
<a class="anchor" href="#_getMetadonnees">#</a>
|
|
|
722 |
<code><a href="source-class-CacheSqlite.html#362-394" title="Go to source code">getMetadonnees</a>( <span>string <var>$id</var></span> )</code>
|
|
|
723 |
|
|
|
724 |
<div class="description short">
|
|
|
725 |
|
|
|
726 |
<p>Return an array of metadatas for the given cache id</p>
|
|
|
727 |
|
|
|
728 |
</div>
|
|
|
729 |
|
|
|
730 |
<div class="description detailed hidden">
|
|
|
731 |
|
|
|
732 |
<p>Return an array of metadatas for the given cache id</p>
|
|
|
733 |
|
|
|
734 |
<p>The array must include these keys :</p>
|
|
|
735 |
|
|
|
736 |
<ul>
|
|
|
737 |
<li>expire : the expire timestamp</li>
|
|
|
738 |
|
|
|
739 |
<li>tags : a string array of tags</li>
|
|
|
740 |
|
|
|
741 |
<li>mtime : timestamp of last modification time</li>
|
|
|
742 |
</ul>
|
|
|
743 |
|
|
|
744 |
|
|
|
745 |
|
|
|
746 |
<h4>Parameters</h4>
|
|
|
747 |
<div class="list"><dl>
|
|
|
748 |
<dt><var>$id</var></dt>
|
|
|
749 |
<dd><code>string</code><br>$id cache id</dd>
|
|
|
750 |
</dl></div>
|
|
|
751 |
|
|
|
752 |
<h4>Returns</h4>
|
|
|
753 |
<div class="list">
|
|
|
754 |
<code>array</code><br>array of metadatas (false if the cache id is not found)<br>
|
|
|
755 |
</div>
|
|
|
756 |
|
|
|
757 |
|
|
|
758 |
|
|
|
759 |
|
|
|
760 |
</div>
|
|
|
761 |
</div></td>
|
|
|
762 |
</tr>
|
|
|
763 |
<tr data-order="ajouterSupplementDureeDeVie" id="_ajouterSupplementDureeDeVie">
|
|
|
764 |
|
|
|
765 |
<td class="attributes"><code>
|
|
|
766 |
public
|
|
|
767 |
boolean
|
|
|
768 |
|
|
|
769 |
</code>
|
|
|
770 |
</td>
|
|
|
771 |
|
|
|
772 |
<td class="name"><div>
|
|
|
773 |
<a class="anchor" href="#_ajouterSupplementDureeDeVie">#</a>
|
|
|
774 |
<code><a href="source-class-CacheSqlite.html#396-415" title="Go to source code">ajouterSupplementDureeDeVie</a>( <span>string <var>$id</var></span>, <span>integer <var>$supplement_duree_de_vie</var></span> )</code>
|
|
|
775 |
|
|
|
776 |
<div class="description short">
|
|
|
777 |
|
|
|
778 |
<p>Give (if possible) an extra lifetime to the given cache id</p>
|
|
|
779 |
|
|
|
780 |
</div>
|
|
|
781 |
|
|
|
782 |
<div class="description detailed hidden">
|
|
|
783 |
|
|
|
784 |
<p>Give (if possible) an extra lifetime to the given cache id</p>
|
|
|
785 |
|
|
|
786 |
|
|
|
787 |
|
|
|
788 |
<h4>Parameters</h4>
|
|
|
789 |
<div class="list"><dl>
|
|
|
790 |
<dt><var>$id</var></dt>
|
|
|
791 |
<dd><code>string</code><br>$id cache id</dd>
|
|
|
792 |
<dt><var>$supplement_duree_de_vie</var></dt>
|
|
|
793 |
<dd><code>integer</code><br>$extraLifetime</dd>
|
|
|
794 |
</dl></div>
|
|
|
795 |
|
|
|
796 |
<h4>Returns</h4>
|
|
|
797 |
<div class="list">
|
|
|
798 |
<code>boolean</code><br>true if ok<br>
|
|
|
799 |
</div>
|
|
|
800 |
|
|
|
801 |
|
|
|
802 |
|
|
|
803 |
|
|
|
804 |
</div>
|
|
|
805 |
</div></td>
|
|
|
806 |
</tr>
|
|
|
807 |
</table>
|
|
|
808 |
|
|
|
809 |
|
|
|
810 |
|
|
|
811 |
|
|
|
812 |
|
|
|
813 |
|
|
|
814 |
|
|
|
815 |
|
|
|
816 |
|
|
|
817 |
|
|
|
818 |
|
|
|
819 |
|
|
|
820 |
<table class="summary" id="properties">
|
|
|
821 |
<caption>Properties summary</caption>
|
|
|
822 |
<tr data-order="options" id="$options">
|
|
|
823 |
<td class="attributes"><code>
|
|
|
824 |
protected
|
|
|
825 |
array
|
|
|
826 |
</code></td>
|
|
|
827 |
|
|
|
828 |
<td class="name">
|
|
|
829 |
<a href="source-class-CacheSqlite.html#3-23" title="Go to source code"><var>$options</var></a>
|
|
|
830 |
</td>
|
|
|
831 |
<td class="value"><code><span class="php-keyword1">array</span>(
|
|
|
832 |
<span class="php-quote">'stockage_chemin'</span> => <span class="php-keyword1">null</span>,
|
|
|
833 |
<span class="php-quote">'defragmentation_auto'</span> => <span class="php-num">10</span>
|
|
|
834 |
)</code></td>
|
|
|
835 |
<td class="description"><div>
|
|
|
836 |
<a href="#$options" class="anchor">#</a>
|
|
|
837 |
|
|
|
838 |
<div class="description short">
|
|
|
839 |
|
|
|
840 |
<p>Options disponibles :</p>
|
|
|
841 |
|
|
|
842 |
</div>
|
|
|
843 |
|
|
|
844 |
<div class="description detailed hidden">
|
|
|
845 |
|
|
|
846 |
<p>Options disponibles :</p>
|
|
|
847 |
|
|
|
848 |
<h1>> (string) stockage_chemin :</h1>
|
|
|
849 |
|
|
|
850 |
<p>Chemin vers le fichier contenant la base SQLite.</p>
|
|
|
851 |
|
|
|
852 |
<h1>> (int) defragmentation_auto :</h1>
|
|
|
853 |
|
|
|
854 |
<ul>
|
|
|
855 |
<li>Désactive / Régler le processus de défragmentation automatique</li>
|
|
|
856 |
|
|
|
857 |
<li>Le processus de défragmentation automatiques réduit la taille du fichier
|
|
|
858 |
contenant la base de données quand un ajout ou une suppression de cache est
|
|
|
859 |
réalisée : 0 => pas de défragmentation automatique 1 =>
|
|
|
860 |
défragmentation automatique systématique x (integer) > 1 =>
|
|
|
861 |
défragmentation automatique toutes les 1 fois (au hasard) sur x ajout ou
|
|
|
862 |
suppression de cache</li>
|
|
|
863 |
</ul>
|
|
|
864 |
|
|
|
865 |
|
|
|
866 |
</div>
|
|
|
867 |
</div></td>
|
|
|
868 |
</tr>
|
|
|
869 |
</table>
|
|
|
870 |
|
|
|
871 |
|
|
|
872 |
|
|
|
873 |
|
|
|
874 |
|
|
|
875 |
|
|
|
876 |
</div>
|
|
|
877 |
|
|
|
878 |
<div id="footer">
|
|
|
879 |
TBFramework - v0.4 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
|
|
|
880 |
</div>
|
|
|
881 |
</div>
|
|
|
882 |
</div>
|
|
|
883 |
</body>
|
|
|
884 |
</html>
|