1
memc_servers_set('127.0.0.1:11211')
3
memc_set('mysql:doc1', bcol)
6
This documentation is NOT distributed under a GPL license. Use of this documentation is subject to the following terms: You may create a printed copy of this documentation solely for your own personal use. Conversion to other formats is allowed as long as the actual content is not altered or edited in any way. You shall not publish or distribute this documentation in any form or on any media, except if you distribute the documentation in a manner similar to how MySQL disseminates it (that is, electronically for download on a Web site with the software) or on a CD-ROM or similar medium, provided however that the documentation is disseminated together with the software on the same medium. Any other use, such as any dissemination of printed copies or use of this documentation, in whole or in part, in another publication, requires the prior written consent from an authorized representative of MySQL AB. MySQL AB reserves any and all rights to this documentation not expressly granted above.
7
memc_delete('mysql:doc1')
11
memc_set('spot:test', ' Spot ')
15
memc_prepend('spot:test', 'See')
19
memc_append('spot:test', 'run.')
23
memc_delete('spot:test')
26
UNKNOWN BEHAVIOR TYPE!
27
memc_behavior_set('MEMCACHED_BEHAVIOR_NO_BLOCK', '1')
28
UNKNOWN BEHAVIOR TYPE!
29
memc_behavior_get('MEMCACHED_BEHAVIOR_NO_BLOCK')
30
UNKNOWN BEHAVIOR TYPE!
31
memc_behavior_set('MEMCACHED_BEHAVIOR_NO_BLOCK', @behavior)
32
UNKNOWN BEHAVIOR TYPE!
35
memc_behavior_set('MEMCACHED_BEHAVIOR_SUPPORT_CAS', '1')
37
memc_behavior_get('MEMCACHED_BEHAVIOR_SUPPORT_CAS')
39
memc_behavior_set('MEMCACHED_BEHAVIOR_SUPPORT_CAS', @behavior)
41
memc_behavior_set('MEMCACHED_BEHAVIOR_TCP_NODELAY', '1')
43
memc_behavior_get('MEMCACHED_BEHAVIOR_TCP_NODELAY')
45
memc_behavior_set('MEMCACHED_BEHAVIOR_TCP_NODELAY', @behavior)
47
memc_behavior_set('MEMCACHED_BEHAVIOR_BUFFER_REQUESTS', '1')
49
memc_behavior_get('MEMCACHED_BEHAVIOR_BUFFER_REQUESTS')
51
memc_behavior_set('MEMCACHED_BEHAVIOR_BUFFER_REQUESTS', @behavior)
53
memc_behavior_set('MEMCACHED_BEHAVIOR_USER_DATA', '1')
55
memc_behavior_get('MEMCACHED_BEHAVIOR_USER_DATA')
57
memc_behavior_set('MEMCACHED_BEHAVIOR_USER_DATA', @behavior)
59
memc_behavior_set('MEMCACHED_BEHAVIOR_SORT_HOSTS', '1')
61
memc_behavior_get('MEMCACHED_BEHAVIOR_SORT_HOSTS')
63
memc_behavior_set('MEMCACHED_BEHAVIOR_SORT_HOSTS', @behavior)
65
memc_behavior_set('MEMCACHED_BEHAVIOR_VERIFY_KEY', '1')
67
memc_behavior_get('MEMCACHED_BEHAVIOR_VERIFY_KEY')
69
memc_behavior_set('MEMCACHED_BEHAVIOR_VERIFY_KEY', @behavior)
71
memc_behavior_set('MEMCACHED_BEHAVIOR_KETAMA', '1')
73
memc_behavior_get('MEMCACHED_BEHAVIOR_KETAMA')
75
memc_behavior_set('MEMCACHED_BEHAVIOR_CACHE_LOOKUPS', '1')
77
memc_behavior_get('MEMCACHED_BEHAVIOR_CACHE_LOOKUPS')
79
memc_behavior_set('MEMCACHED_BEHAVIOR_CACHE_LOOKUPS', @behavior)
81
memc_behavior_set('MEMCACHED_BEHAVIOR_BUFFER_REQUESTS', '1')
83
memc_behavior_get('MEMCACHED_BEHAVIOR_BUFFER_REQUESTS')
85
memc_behavior_set('MEMCACHED_BEHAVIOR_BUFFER_REQUESTS', @behavior)
87
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_DEFAULT' )
88
INVALID VALUE FOR MEMCACHED HASH ALGORITHM!
89
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
91
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_MD5' )
93
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
95
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_CRC' )
97
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
99
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_FNV1_64' )
101
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
102
MEMCACHED_HASH_FNV1_64
103
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_FNV1A_64' )
105
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
106
MEMCACHED_HASH_FNV1A_64
107
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_FNV1_32' )
109
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
110
MEMCACHED_HASH_FNV1_32
111
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_FNV1A_32' )
113
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
114
MEMCACHED_HASH_FNV1A_32
115
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_JENKINS' )
117
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
118
MEMCACHED_HASH_JENKINS
119
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_HSIEH' )
121
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
122
MEMCACHED_HASH_JENKINS
123
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH','MEMCACHED_HASH_MURMUR' )
125
memc_behavior_get('MEMCACHED_BEHAVIOR_HASH')
126
MEMCACHED_HASH_MURMUR
127
memc_behavior_set('MEMCACHED_BEHAVIOR_HASH', @preserve_behavior)
129
memc_behavior_set('MEMCACHED_BEHAVIOR_DISTRIBUTION', 'MEMCACHED_DISTRIBUTION_MODULA')
130
INVALID VALUE FOR DISTRIBUTION!
131
memc_behavior_get('MEMCACHED_BEHAVIOR_DISTRIBUTION')
132
MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA
133
memc_behavior_set('MEMCACHED_BEHAVIOR_DISTRIBUTION', 'MEMCACHED_DISTRIBUTION_CONSISTENT')
135
memc_behavior_get('MEMCACHED_BEHAVIOR_DISTRIBUTION')
136
MEMCACHED_DISTRIBUTION_CONSISTENT
137
memc_behavior_set('MEMCACHED_BEHAVIOR_DISTRIBUTION', 'MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA')
139
memc_behavior_get('MEMCACHED_BEHAVIOR_DISTRIBUTION')
140
MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA
141
memc_behavior_set('MEMCACHED_BEHAVIOR_DISTRIBUTION', @preserve_dist)
145
memc_behavior_set('MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE', 60000)
147
memc_behavior_get('MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE')
149
memc_behavior_set('MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE', @size)
153
memc_behavior_set('MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE', 120000)
155
memc_behavior_get('MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE')
157
memc_behavior_set('MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE', @size)
161
memc_behavior_set('MEMCACHED_BEHAVIOR_POLL_TIMEOUT', 100)
163
memc_behavior_get('MEMCACHED_BEHAVIOR_POLL_TIMEOUT')
165
memc_behavior_set('MEMCACHED_BEHAVIOR_POLL_TIMEOUT', @size)
169
memc_behavior_set('MEMCACHED_BEHAVIOR_RETRY_TIMEOUT', 5)
171
memc_behavior_get('MEMCACHED_BEHAVIOR_RETRY_TIMEOUT')
173
memc_behavior_set('MEMCACHED_BEHAVIOR_RETRY_TIMEOUT', @size)
177
memc_behavior_set('MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK', 5)
179
memc_behavior_get('MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK')
181
memc_behavior_set('MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK', @size)
185
memc_behavior_set('MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK', 5)
187
memc_behavior_get('MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK')
189
memc_behavior_set('MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK', @size)