From what i have read, you can not store values or data over 1mb at a time with memcached. If this is the case, is there any way to find out the filesize of an array before submitting it to memcached?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Memcache is a key/value store, and hence does not ‘know’ about more “complex” objects. What the module does is serialize the value & store that as a string. So, the total size =
strlen(serialize($value));Note that your want the non-overloaded version ofstrlen!