I have an object in php that is more than one mb. I am using memcache which allows me to store 1mb or data. Does anyone know any other alternatives for data over 1mb. I have read that altering memcache to store more is not the best option.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
You can use MultipartCache which extends
memcache
to support data higher than1MB limit
. Please note that inmemcached 1.4.2
and higher you can configure the maximum supported object size by using the -I command-line option.MultipartCache simply splits the data into different parts based on the limit set
max 1MB
Example:
The system would split the data base on
size/limit
which is about575
different places for the sample above.To get this information is pretty easy
How are we sure that the the data is ok ? that is what the
hash
is for but lets do a random testOutput
Now lets look at more sensitive information .. like an image ...