File tree Expand file tree Collapse file tree 18 files changed +147
-18
lines changed
reference/memcache/memcache Expand file tree Collapse file tree 18 files changed +147
-18
lines changed Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.add" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::add</refname >
6
+ <refname >memcache_add</refname >
6
7
<refpurpose >Add an item to the server</refpurpose >
7
8
</refnamediv >
8
9
15
16
<methodparam choice =" opt" ><type >int</type ><parameter >flag</parameter ></methodparam >
16
17
<methodparam choice =" opt" ><type >int</type ><parameter >expire</parameter ></methodparam >
17
18
</methodsynopsis >
19
+ <methodsynopsis >
20
+ <type >bool</type ><methodname >memcache_add</methodname >
21
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
22
+ <methodparam ><type >string</type ><parameter >key</parameter ></methodparam >
23
+ <methodparam ><type >mixed</type ><parameter >var</parameter ></methodparam >
24
+ <methodparam choice =" opt" ><type >int</type ><parameter >flag</parameter ></methodparam >
25
+ <methodparam choice =" opt" ><type >int</type ><parameter >expire</parameter ></methodparam >
26
+ </methodsynopsis >
18
27
19
28
<para >
20
29
<function >Memcache::add</function > stores variable
21
30
<parameter >var</parameter > with <parameter >key</parameter > only if such
22
31
key doesn't exist at the server yet.
23
- Also you can use <function >memcache_add</function > function.
24
32
</para >
25
33
26
34
</refsect1 >
Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.addserver" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::addServer</refname >
6
+ <refname >memcache_add_server</refname >
6
7
<refpurpose >Add a memcached server to connection pool</refpurpose >
7
8
</refnamediv >
8
9
20
21
<methodparam choice =" opt" ><type >callable</type ><parameter >failure_callback</parameter ></methodparam >
21
22
<methodparam choice =" opt" ><type >int</type ><parameter >timeoutms</parameter ></methodparam >
22
23
</methodsynopsis >
24
+ <methodsynopsis >
25
+ <type >bool</type ><methodname >memcache_add_server</methodname >
26
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
27
+ <methodparam ><type >string</type ><parameter >host</parameter ></methodparam >
28
+ <methodparam choice =" opt" ><type >int</type ><parameter >port</parameter ><initializer >11211</initializer ></methodparam >
29
+ <methodparam choice =" opt" ><type >bool</type ><parameter >persistent</parameter ></methodparam >
30
+ <methodparam choice =" opt" ><type >int</type ><parameter >weight</parameter ></methodparam >
31
+ <methodparam choice =" opt" ><type >int</type ><parameter >timeout</parameter ></methodparam >
32
+ <methodparam choice =" opt" ><type >int</type ><parameter >retry_interval</parameter ></methodparam >
33
+ <methodparam choice =" opt" ><type >bool</type ><parameter >status</parameter ></methodparam >
34
+ <methodparam choice =" opt" ><type >callable</type ><parameter >failure_callback</parameter ></methodparam >
35
+ <methodparam choice =" opt" ><type >int</type ><parameter >timeoutms</parameter ></methodparam >
36
+ </methodsynopsis >
23
37
24
38
<para >
25
39
<function >Memcache::addServer</function > adds a server to the connection pool.
26
- You can also use the <function >memcache_add_server</function > function.
27
40
</para >
28
41
29
42
<para >
Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.close" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::close</refname >
6
+ <refname >memcache_close</refname >
6
7
<refpurpose >Close memcached server connection</refpurpose >
7
8
</refnamediv >
8
9
12
13
<type >bool</type ><methodname >Memcache::close</methodname >
13
14
<void />
14
15
</methodsynopsis >
16
+ <methodsynopsis >
17
+ <type >bool</type ><methodname >memcache_close</methodname >
18
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
19
+ </methodsynopsis >
15
20
16
21
<para >
17
22
<function >Memcache::close</function > closes connection to memcached
18
23
server. This function doesn't close persistent connections, which are
19
24
closed only during web-server shutdown/restart.
20
- Also you can use <function >memcache_close</function > function.
21
25
</para >
22
26
23
27
</refsect1 >
Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.connect" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::connect</refname >
6
+ <refname >memcache_connect</refname >
6
7
<refpurpose >Open memcached server connection</refpurpose >
7
8
</refnamediv >
8
9
14
15
<methodparam choice =" opt" ><type >int</type ><parameter >port</parameter ></methodparam >
15
16
<methodparam choice =" opt" ><type >int</type ><parameter >timeout</parameter ></methodparam >
16
17
</methodsynopsis >
18
+ <methodsynopsis >
19
+ <type >Memcache</type ><methodname >memcache_connect</methodname >
20
+ <methodparam ><type >string</type ><parameter >host</parameter ></methodparam >
21
+ <methodparam choice =" opt" ><type >int</type ><parameter >port</parameter ></methodparam >
22
+ <methodparam choice =" opt" ><type >int</type ><parameter >timeout</parameter ></methodparam >
23
+ </methodsynopsis >
17
24
18
25
<para >
19
26
<function >Memcache::connect</function > establishes a connection to the
22
29
<function >Memcache::connect</function > will be automatically closed at the
23
30
end of script execution. Also you can close it with
24
31
<function >Memcache::close</function >.
25
- Also you can use <function >memcache_connect</function > function.
26
32
</para >
27
33
28
34
</refsect1 >
Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.decrement" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::decrement</refname >
6
+ <refname >memcache_decrement</refname >
6
7
<refpurpose >Decrement item's value</refpurpose >
7
8
</refnamediv >
8
9
13
14
<methodparam ><type >string</type ><parameter >key</parameter ></methodparam >
14
15
<methodparam choice =" opt" ><type >int</type ><parameter >value</parameter ><initializer >1</initializer ></methodparam >
15
16
</methodsynopsis >
17
+ <methodsynopsis >
18
+ <type class =" union" ><type >int</type ><type >false</type ></type ><methodname >memcache_decrement</methodname >
19
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
20
+ <methodparam ><type >string</type ><parameter >key</parameter ></methodparam >
21
+ <methodparam choice =" opt" ><type >int</type ><parameter >value</parameter ><initializer >1</initializer ></methodparam >
22
+ </methodsynopsis >
16
23
17
24
<para >
18
25
<function >Memcache::decrement</function > decrements value of the
34
41
</note >
35
42
<function >Memcache::decrement</function > <emphasis >does not</emphasis >
36
43
create an item if it didn't exist.
37
- Also you can use <function >memcache_decrement</function > function.
38
44
</para >
39
45
40
46
</refsect1 >
Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.delete" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::delete</refname >
6
+ <refname >memcache_delete</refname >
6
7
<refpurpose >Delete item from the server</refpurpose >
7
8
</refnamediv >
8
9
13
14
<methodparam ><type >string</type ><parameter >key</parameter ></methodparam >
14
15
<methodparam choice =" opt" ><type >int</type ><parameter >exptime</parameter ><initializer >0</initializer ></methodparam >
15
16
</methodsynopsis >
17
+ <methodsynopsis >
18
+ <type >bool</type ><methodname >memcache_delete</methodname >
19
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
20
+ <methodparam ><type >string</type ><parameter >key</parameter ></methodparam >
21
+ <methodparam choice =" opt" ><type >int</type ><parameter >exptime</parameter ><initializer >0</initializer ></methodparam >
22
+ </methodsynopsis >
16
23
17
24
<para >
18
25
<function >Memcache::delete</function > deletes an item with the <parameter >key</parameter >.
Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.flush" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::flush</refname >
6
+ <refname >memcache_flush</refname >
6
7
<refpurpose >Flush all existing items at the server</refpurpose >
7
8
</refnamediv >
8
9
12
13
<type >bool</type ><methodname >Memcache::flush</methodname >
13
14
<void />
14
15
</methodsynopsis >
16
+ <methodsynopsis >
17
+ <type >bool</type ><methodname >memcache_flush</methodname >
18
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
19
+ </methodsynopsis >
15
20
16
21
<para >
17
22
<function >Memcache::flush</function > immediately invalidates all
18
23
existing items. <function >Memcache::flush</function > doesn't
19
24
actually free any resources, it only marks all the items as expired, so
20
25
occupied memory will be overwritten by new items.
21
- Also you can use <function >memcache_flush</function > function.
22
26
</para >
23
27
24
28
</refsect1 >
Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.get" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::get</refname >
6
+ <refname >memcache_get</refname >
6
7
<refpurpose >Retrieve item from the server</refpurpose >
7
8
</refnamediv >
8
9
18
19
<methodparam ><type >array</type ><parameter >keys</parameter ></methodparam >
19
20
<methodparam choice =" opt" ><type >array</type ><parameter role =" reference" >flags</parameter ></methodparam >
20
21
</methodsynopsis >
22
+ <methodsynopsis >
23
+ <type >string</type ><methodname >memcache_get</methodname >
24
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
25
+ <methodparam ><type >string</type ><parameter >key</parameter ></methodparam >
26
+ <methodparam choice =" opt" ><type >int</type ><parameter role =" reference" >flags</parameter ></methodparam >
27
+ </methodsynopsis >
28
+ <methodsynopsis >
29
+ <type >array</type ><methodname >memcache_get</methodname >
30
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
31
+ <methodparam ><type >array</type ><parameter >keys</parameter ></methodparam >
32
+ <methodparam choice =" opt" ><type >array</type ><parameter role =" reference" >flags</parameter ></methodparam >
33
+ </methodsynopsis >
21
34
22
35
<para >
23
36
<function >Memcache::get</function > returns previously stored data of
Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.getextendedstats" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::getExtendedStats</refname >
6
+ <refname >memcache_get_extended_stats</refname >
6
7
<refpurpose >Get statistics from all servers in pool</refpurpose >
7
8
</refnamediv >
8
9
14
15
<methodparam choice =" opt" ><type >int</type ><parameter >slabid</parameter ></methodparam >
15
16
<methodparam choice =" opt" ><type >int</type ><parameter >limit</parameter ><initializer >100</initializer ></methodparam >
16
17
</methodsynopsis >
18
+ <methodsynopsis >
19
+ <type >array</type ><methodname >memcache_get_extended_stats</methodname >
20
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
21
+ <methodparam choice =" opt" ><type >string</type ><parameter >type</parameter ></methodparam >
22
+ <methodparam choice =" opt" ><type >int</type ><parameter >slabid</parameter ></methodparam >
23
+ <methodparam choice =" opt" ><type >int</type ><parameter >limit</parameter ><initializer >100</initializer ></methodparam >
24
+ </methodsynopsis >
17
25
18
26
<para >
19
27
<function >Memcache::getExtendedStats</function > returns a two-dimensional
20
28
associative array with server statistics. Array keys correspond to
21
29
host:port of server and values contain the individual server statistics.
22
30
A failed server will have its corresponding entry set to &false; .
23
- You can also use the <function >memcache_get_extended_stats</function > function.
24
31
</para >
25
32
26
33
<note >
Original file line number Diff line number Diff line change 3
3
<refentry xml : id =" memcache.getserverstatus" xmlns =" http://docbook.org/ns/docbook" >
4
4
<refnamediv >
5
5
<refname >Memcache::getServerStatus</refname >
6
+ <refname >memcache_get_server_status</refname >
6
7
<refpurpose >Returns server status</refpurpose >
7
8
</refnamediv >
8
9
13
14
<methodparam ><type >string</type ><parameter >host</parameter ></methodparam >
14
15
<methodparam choice =" opt" ><type >int</type ><parameter >port</parameter ><initializer >11211</initializer ></methodparam >
15
16
</methodsynopsis >
17
+ <methodsynopsis >
18
+ <type >int</type ><methodname >memcache_get_server_status</methodname >
19
+ <methodparam ><type >Memcache</type ><parameter >memcache</parameter ></methodparam >
20
+ <methodparam ><type >string</type ><parameter >host</parameter ></methodparam >
21
+ <methodparam choice =" opt" ><type >int</type ><parameter >port</parameter ><initializer >11211</initializer ></methodparam >
22
+ </methodsynopsis >
16
23
17
24
<para >
18
25
<function >Memcache::getServerStatus</function > returns a the servers
19
- online/offline status. You can also use <function >memcache_get_server_status</function >
20
- function.
26
+ online/offline status.
21
27
</para >
22
28
23
29
<note >
You can’t perform that action at this time.
0 commit comments