Hi!
I would suggest to look at tests/mem_function.c in the source tarsal. You may
also want to look at the code in memcpy.c
There is also the man page "libmemcached_examples"
Cheers,
-Brian
On May 17, 2010, at 8:23 AM, ram 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 from
> http://docs.tangent.org/libmemcached/index.html
>
> but I couldnt functions simple enough to just get & put
>
>
>
>
>
>
>
>
>
>