root/eaccelerator/trunk/doc/php/cache.php

Revision 265, 2.0 kB (checked in by hans, 2 years ago)

fixed svn properties on trunk (eol-style and keywords)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /*
3  * This file is a file with dummy php function to document the functions in
4  * the eAccelerator extension.
5  */
6
7 /**
8  * Caching.
9  * These functions are enabled when eAccelerator is compiled with content
10  * caching support. These functions can be disabled with the configuration
11  * switch --without-eaccelerator-content-caching at compile time.
12  *
13  * @package eAccelerator
14  */
15
16 /**
17  * Cache full page.
18  * Cache the full page for $ttl seconds.
19  *
20  * @param string A string to identify this page, something like the url.
21  * @param int The number of seconds to cache the page, 0 for never expire.
22  * @example eaccelerator_cache_page.php Cache page example
23  */
24 function eaccelerator_cache_page ($key, $ttl = 0) {}
25
26 /**
27  * Remove a cached page.
28  * Removes the page which was cached by eaccelerator_cache_page with the same $key from cache.
29  *
30  * @param string    The key that identifies the cached page
31  * @see eaccelerator_cache_page
32  */
33 function eaccelerator_rm_page ($key) {}
34
35 /**
36  * Cache ouput of evaled code.
37  * Caches the output of the $eval_code in shared memory for $ttl seconds. The
38  * output can be removed from cache by calling eaccelerator_rm with the same
39  * key.
40  *
41  * @param string The key to identify the output with.
42  * @param string The code to eval() and cache the output from.
43  * @param int The number of seconds to cache it or 0 for never expire.
44  * @see eaccelerator_rm
45  * @example eaccelerator_cache_output.php Cache output example.
46  */
47 function eaccelerator_cache_output ($key, $eval_code, $ttl = 0) {}
48
49 /**
50  * Cache result of evaled code.
51  * Caches the result of the $evel_code in shared memory for $ttl seconds. The
52  * result can be removed from cache by calling eaccelerator_rm with the same
53  * key.
54  *
55  * @param string The key to identify the result with.
56  * @param string The code to eval() and cache the result from.
57  * @param int The number of seconds to cache it or 0 for never expire.
58  * @see eaccelerator_rm
59  * @example eaccelerator_cache_result.php Cache result example.
60  */
61 function eaccelerator_cache_result ($key, $code, $ttl = 0) {}
62
63 ?>
64
Note: See TracBrowser for help on using the browser.