Did you look at the documentation for the functions?

Trond

Sent from my iPhone

On 19. mai 2010, at 15.38, ram <[email protected]> wrote:

The problem is I find all these offset,initial etc very cryptic.

Can I set them all to 0


On May 18, 3:29 am, Dustin <[email protected]> wrote:
  memcached_return_t
    memcached_increment_with_initial (memcached_st *ptr,
                                      const char *key,
                                      size_t key_length,
                                      uint64_t offset,
                                      uint64_t initial,
                                      time_t expiration,
                                      uint64_t *value);

On May 17, 8:23 am, ram <[email protected]> wrote:

I am an absolute beginner with memcached & libmemcached ( a perl
programmer by profession)
I am trying to write a simple c code that will do the foll algorithm

------------
n = search_value_from_memcache(username);
if(n) {
increment_value_memcache(username)} else {

   set_value_memcache(username,1);}

-----------

I am trying functions fromhttp://docs.tangent.org/libmemcached/ index.html

but I couldnt functions simple enough to just get & put

Reply via email to