* fix for when no servers are definied.
* different buffers are now kept for different connections to
speed up async efforts
+ * Modified increment/decrement functions to return uint64_t values
0.8 Mon Nov 5 10:40:41 PST 2007
* Adding support for CRC hash method
AC_SUBST(MEMCACHED_API_VERSION)
#shared library versioning
-MEMCACHED_LIBRARY_VERSION=1:0:0
+MEMCACHED_LIBRARY_VERSION=1:1:0
# | | |
# +------+ | +---+
# | | |
memcached_increment (memcached_st *ptr,
char *key, size_t key_length,
unsigned int offset,
- unsigned int *value);
+ uint64_t *value);
memcached_return
memcached_decrement (memcached_st *ptr,
char *key, size_t key_length,
unsigned int offset,
- unsigned int *value);
+ uint64_t *value);
=head1 DESCRIPTION
memcached_return memcached_increment(memcached_st *ptr,
char *key, size_t key_length,
unsigned int offset,
- unsigned int *value);
+ uint64_t *value);
memcached_return memcached_decrement(memcached_st *ptr,
char *key, size_t key_length,
unsigned int offset,
- unsigned int *value);
+ uint64_t *value);
void memcached_stat_free(memcached_st *, memcached_stat_st *);
memcached_stat_st *memcached_stat(memcached_st *ptr, char *args, memcached_return *error);
memcached_return memcached_stat_servername(memcached_stat_st *stat, char *args,
char *verb,
char *key, size_t key_length,
unsigned int offset,
- unsigned int *value)
+ uint64_t *value)
{
size_t send_length, sent_length;
memcached_return rc;
}
else
{
- *value= strtol(buffer, (char **)NULL, 10);
+ *value= (uint64_t)strtoll(buffer, (char **)NULL, 10);
rc= MEMCACHED_SUCCESS;
}
memcached_return memcached_increment(memcached_st *ptr,
char *key, size_t key_length,
unsigned int offset,
- unsigned int *value)
+ uint64_t *value)
{
memcached_return rc;
memcached_return memcached_decrement(memcached_st *ptr,
char *key, size_t key_length,
unsigned int offset,
- unsigned int *value)
+ uint64_t *value)
{
memcached_return rc;
uint8_t increment_test(memcached_st *memc)
{
- unsigned int new_number;
+ uint64_t new_number;
memcached_return rc;
char *key= "number";
char *value= "0";
uint8_t decrement_test(memcached_st *memc)
{
- unsigned int new_number;
+ uint64_t new_number;
memcached_return rc;
char *key= "number";
char *value= "3";