@@ -10,15+10,15 @@ C Client Library for memcached (libmemcached, -lmemcached)
#include <memcached.h>
#include <memcached.h>
- memcached_return
+ memcached_return_t
memcached_callback_set (memcached_st *ptr,
memcached_callback_set (memcached_st *ptr,
- memcached_callback flag,
+ memcached_callback_t flag,
void *data);
void *
memcached_callback_get (memcached_st *ptr,
void *data);
void *
memcached_callback_get (memcached_st *ptr,
- memcached_callback flag,
- memcached_return *error);
+ memcached_callback_t flag,
+ memcached_return_t *error);
=head1 DESCRIPTION
=head1 DESCRIPTION
@@ -56,6+56,8 @@ 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.
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.
+If you set a value with the value being NULL then the prefix key is disabled.
+
=item MEMCACHED_CALLBACK_USER_DATA
This allows you to store a pointer to a specifc piece of data. This can be
=item MEMCACHED_CALLBACK_USER_DATA
This allows you to store a pointer to a specifc piece of data. This can be
@@ -84,7+86,7 @@ MEMCACHED_SUCCESS or MEMCACHED_BUFFERED. Returning MEMCACHED_BUFFERED will
cause the object to be buffered and not sent immediatly (if this is the default behavior based on your connection setup this will happen automatically).
The prototype for this is:
cause the object to be buffered and not sent immediatly (if this is the default behavior based on your connection setup this will happen automatically).