[OpenSIPS-Devel] [Memcached module] Adding cache_increment/cache_decrement methods

Abhinav Jha virolord at gmail.com
Fri Feb 19 17:14:44 CET 2010


Hi Andrei/Bogdan/Anca,

I'm trying to add the atomic cache_increment/cache_decrement methods to the
memcached module, which currently has cache_store, cache_remove, cache_fetch
methods.
I have the following doubts, can someone please clarify :

1. cache_fetch, cache_store and cache_remove are not exported by the
memcached module anywhere. How then are we able to use them from
opensips.cfg ?
2. I exported cache_increment/cache_decrement as *cmds *anyway, and was
atleast able to *access them from opensips.cfg. However, they gave back NO
SERVERS DEFINED * as error back from the libmemcached module. The
cache_fetch, cache_remove and cache_store methods work properly.

I have made changes to *modules/memcached/memcached.c , memcache.c and
memcache.h  for including my functions. *
I am attaching the three files here, if they are any help..

Thanks a lot,
Abhinav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/devel/attachments/20100219/3d913c4c/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memcached.c
Type: text/x-csrc
Size: 8893 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/devel/attachments/20100219/3d913c4c/attachment-0002.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memcache.h
Type: text/x-chdr
Size: 2123 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/devel/attachments/20100219/3d913c4c/attachment-0001.h 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memcache.c
Type: text/x-csrc
Size: 5282 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/devel/attachments/20100219/3d913c4c/attachment-0003.c 


More information about the Devel mailing list