Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error “Could not read long value, too big with” Memcached

I'm using Codeigniter for my website. I have tried setup memcached to cache object from database and when its running i saw the warning like this:

ERROR - 2016-01-12 00:28:40 --> Severity: Warning --> Memcached::get(): could not read long value, too big /var/www/CodeigniterProject/system/libraries/Cache/drivers/Cache_memcached.php 149

How can i fix this?

like image 718
user3894033 Avatar asked Jan 12 '16 07:01

user3894033


1 Answers

I've seen this happen when values have been saved using the Memcache extension and then are retrieved with the Memcached extension - there's an incompatibility between the serialisation used in the two. Flushing the memcache server should solve the issue.

like image 72
Reuben Thompson Avatar answered Oct 29 '22 18:10

Reuben Thompson