[OpenSIPS-Users] Memcache and increment/decrement

Brad Bendy brad.bendy at benganetworks.com
Mon Oct 19 22:16:38 CEST 2009


OpenSIPs uses the libmemcached library right, thats the generic API?

I could fetch then store, but I will get race conditions I think.

Im gonna look about writing a patch and getting it added natively.

Thanks

andrei dragus wrote:
> Right now OpenSIPS does not have increment/decrement functions, primarily because memcached support is offered via the generic memcache API.
>
> If you really need to do this, you could use a fetch followed by a store, though this may cause race conditions. 
>
>   
>>  
>> Hi,
>>
>>
>>
>> I know memcache itself has options for to increment and
>> decrement
>> values, does openSIPs have this? Ive looked everywhere and
>> can not find
>> anything, this could be very useful for many types of
>> custom scripts.
>>
>>
>>
>> Thanks
>>
>>
>>     
>
>
>
>       
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Brad Bendy
Chief Technical Officer
brad.bendy at benganetworks.com

Benga Networks, LLC.
10115 E. Bell Rd, Ste. 107-451
Scottsdale, AZ 85260-2189

Toll Free:    877-44-BENGA
Local:          480-970-5200
Cell:             602-550-4004
Fax:             866-852-4468
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091019/7af945fe/attachment-0001.htm 


More information about the Users mailing list