Leaseweb / LswMemcacheBundle

Symfony bundle for Memcache Doctrine caching and session storage in the Web Debug Toolbar.
MIT License
202 stars 57 forks source link

E_NOTICE: MemcachePool::cas(): Server 192.168.0.1 (tcp 11223, udp 0) failed with: NOT_FOUND (0) #95

Open bdstefan opened 7 years ago

bdstefan commented 7 years ago

Hello,

I encounter this notice everytime when I am using getAdp on a non-existing key.

Env details: "leaseweb/memcache-bundle": "2.1.11" PHP 5.5.30 memcache: 3.0.8

Thanks!

mevdschee commented 7 years ago

Add a "@" before the parent::cas command on line 115 in LoggingMemcache.php:

https://github.com/LeaseWeb/LswMemcacheBundle/blob/master/Cache/LoggingMemcache.php#L115

That should get rid of the warning/notice.

bdstefan commented 7 years ago

Thanks, but this is not what I was expected. :) So, there is not other solution for this issue?

With or without errors suppression, If found out that it is translated into a lot of sets to memcache, even if the key exists.

Could be something related to php-ext version?