Memcached programı sunucuda verileri kaydetmek için başarısız oldu

1 Cevap php

merhaba ben çok boyutlu (dizi boyutu fazla 1000) depolamak olamaz neden bilmek istiyorum

$memcache = new Memcache;

$memcache->connect('localhost', 11211) or die ("Could not connect");

Yukarıdaki s düzgün çalışıyor ...

altında bir hata var ...

   $memcache->set('key', $sear, false, 60) or die ("Failed to save data at the server");

   if the $sear is string or object array then no problem for store data at the server..

  but i store multi dimensional array in memcached,,i will get the error is 

    Failed to save data at the server

teşekkürler ve avans

1 Cevap

Eğer saklamak için çalışıyoruz dizisi büyük olasılıkla çok büyük. Memcache tek bir öğenin boyutuna bir sınırı vardır. maximum size per item is 1,048,576 Bytes or 1MB.

İşte bu konu ile ilgili başka bir konu olduğunu ...

http://stackoverflow.com/questions/1203435/can-you-store-an-array-in-memcache