Answer the question
In order to leave comments, you need to log in
Zend: Cache cleans itself
there is a portal running on Zende.
Memcache is used as a cache (via Zend)
Under the key "ipList" I save a json string with information about ip on the site.
The information is updated several times per second.
From time to time (0-50 seconds) information is deleted without my intervention.
What could be causing this?
Watched already length of a line, spets. signs are nothing.
Other keys are stored "forever"
Answer the question
In order to leave comments, you need to log in
www.php.net/manual/ru/memcached.expiration.php Second paragraph. Could this be the issue? Maybe he does not have enough memory and he quietly deletes something.
look in the memcashed config, there is a standard value and it is very small
But the cache is not designed to store data. What for you store something there? Is it that hard to put some kind of radish or something like that? Or, even simpler, make a database in MySQL with the MEMORY type, it works, they say, at a speed similar to memcache.
Also, a question! If you are working over UDP, is there no limit on packet size and data size?
Memkesh itself rubs the keys either when the storage time expires, or when it is asked, or when the memory runs out. So most likely a bug in your code, well - write all calls to the memcache to the log and then parse this log and see where you messed up.
Actually, when saving to memcache, you can specify ttl. Perhaps Zend Cache does not install it correctly, check.
It is possible that zend caches its service information there and the place ends.
How much memory do you have allocated for memcash?
Try to connect via telnet and monitor statistics.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question