X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_callback.pod;h=a11f9585deac8a108c2f8f075e32d11a610b0c3e;hb=7582050eb5e2bdc7e055c84d639a7cb5b407cd4c;hp=a9c0ac417b570af4f8ac5458035edf25dbdd3c42;hpb=26c1a71921b1468d56f6edaa7e6e3855ec1c879f;p=awesomized%2Flibmemcached diff --git a/docs/memcached_callback.pod b/docs/memcached_callback.pod old mode 100755 new mode 100644 index a9c0ac41..a11f9585 --- a/docs/memcached_callback.pod +++ b/docs/memcached_callback.pod @@ -1,6 +1,6 @@ =head1 NAME -memcached_callback_get memcached_callback_set +memcached_callback_get memcached_callback_set - Get and set a callback =head1 LIBRARY @@ -47,6 +47,15 @@ point of its execution all connections have been closed. When memcached_delete() is called this function will be excuted. At the point of its execution all connections have been closed. +=item MEMCACHED_CALLBACK_PREFIX_KEY + +You can set a value which will be used to create a domain for your keys. +The value specified here will be prefixed to each of your keys. The value can not +be greater then MEMCACHED_PREFIX_KEY_MAX_SIZE - 1 and will reduce MEMCACHED_MAX_KEY by +the value of your key. The prefix key is only applied to the primary key, +not the master key. MEMCACHED_FAILURE will be returned if no key is set. In the case +of a key which is too long MEMCACHED_BAD_KEY_PROVIDED will be returned. + =item MEMCACHED_CALLBACK_USER_DATA This allows you to store a pointer to a specifc piece of data. This can be @@ -56,6 +65,7 @@ will copy the pointer to the clone. =item MEMCACHED_CALLBACK_MALLOC_FUNCTION This alllows yout to pass in a customized version of malloc that will be used instead of the builtin malloc(3) call. +Your malloc must zero all memory. The prototype for this is: void *(*memcached_malloc_function)(memcached_st *ptr, const size_t size);