X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_callback.pod;h=6eba4f3263080ed910bba2ebeb00324c2dca7a63;hb=8d2e59120724923d1ebe75112d73ef03181e0e67;hp=e1b2fb16d9e058bf2a7e546733b6997dce35c9ae;hpb=a0c633caf29c00e70b540d5a2cf2cd99207dfdd7;p=awesomized%2Flibmemcached diff --git a/docs/memcached_callback.pod b/docs/memcached_callback.pod old mode 100755 new mode 100644 index e1b2fb16..6eba4f32 --- 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 @@ -51,9 +51,10 @@ point of its execution all connections have been closed. 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 and will reduce MEMCACHED_MAX_KEY by +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. +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 @@ -63,24 +64,15 @@ 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. -The prototype for this is: - -void *(*memcached_malloc_function)(memcached_st *ptr, const size_t size); +DEPRECATED: use memcached_set_memory_allocators instead. =item MEMCACHED_CALLBACK_REALLOC_FUNCTION -This alllows yout to pass in a customized version of realloc that will be used instead of the builtin realloc(3) call. -The prototype for this is: - -void *(*memcached_realloc_function)(memcached_st *ptr, void *mem, const size_t size); +DEPRECATED: use memcached_set_memory_allocators instead. =item MEMCACHED_CALLBACK_FREE_FUNCTION -This alllows yout to pass in a customized version of realloc that will be used instead of the builtin free(3) call. -The prototype for this is: - -typedef void (*memcached_free_function)(memcached_st *ptr, void *mem); +DEPRECATED: use memcached_set_memory_allocators instead. =item MEMCACHED_CALLBACK_GET_FAILURE