Hi Andrei/Bogdan/Anca,<div><br></div><div>I&#39;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. </div><div>I have the following doubts, can someone please clarify : </div>
<div><br></div><div>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 ? </div><div>2. I exported cache_increment/cache_decrement as <i>cmds </i>anyway, and was atleast able to <b><i>access</i><span class="Apple-style-span" style="font-weight: normal;"> them from opensips.cfg. However, they gave back </span>NO SERVERS DEFINED </b> as error back from the libmemcached module. The cache_fetch, cache_remove and cache_store methods work properly. </div>
<div><br></div><div>I have made changes to <b><i>modules/memcached/memcached.c</i><span class="Apple-style-span" style="font-weight: normal;"> , </span><i>memcache.c and memcache.h </i><span class="Apple-style-span" style="font-weight: normal;"> for including my functions. </span></b></div>
<div>I am attaching the three files here, if they are any help.. </div><div><br></div><div>Thanks a lot,</div><div>Abhinav</div>