2

Possible Duplicate:
cannot store values into memcache

Hi everyone,

When trying memcache:get, I'll get the following error message back:

Message: Memcache::get() [memcache.get]: Server localhost (tcp 11211) failed with: Failed reading line from stream (0)

I run a Windows 32bit test environment (XP) and here's how my code looks:

 function getMulti(array $keys) {
      $items = $this->memcache->get($keys);
      return $items;
 }

My memcache servers are two local computers in the LAN that my dev. environment is connected to.

Sure, I can turn the error logging off or just put an @ before the get function call, but that doesnt solve this issue. What can I do?

Thanks a lot!

Community
  • 1
  • 1
Industrial
  • 41,400
  • 69
  • 194
  • 289
  • 1
    looks like a duplicate of http://stackoverflow.com/questions/2107398/cannot-store-values-into-memcache – ax. May 20 '10 at 10:45
  • Which version of PECL/Memcache are you running? – BenTheDesigner May 20 '10 at 10:48
  • Did you try to use the possible solution the the duplicate that *@ax* reported? I see that you commented there, but have you actually tried to implement that solution? – Sune Rasmussen May 20 '10 at 10:57
  • Well, the strange thing is that this does not occur every time, but only when the requested key is non-existent in the memcache storage – Industrial May 20 '10 at 11:00
  • I can also connect to memcache with telnet, however it returns a blank black page in the command prompt of xp – Industrial May 20 '10 at 11:01

0 Answers0