<p>Hello,</p>

<p>Looking into the OpenSIPS code, I can only see -2 returned for cases where the fetched key is not in Memcached. </p>

<p>Though did a quick test with this, and seems the library is behaving a little bit strangely - If I shutdown memcached, it will still continue to return -2 for the next couple of calls, until finally returning -1 in order to notify there's an error going on. </p>

<p>Will have to dig more into the memcached lib to see if there's any way to instantly detect the failures.</p>

<p>Best Regards,<br>
Vlad</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/522#issuecomment-105846582">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciSDw-T0Qw-yIIkWrMAdm2C9HWUpGks5oNYv9gaJpZM4EqqCF.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/522#issuecomment-105846582"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>