i am using memcached on my centos server , my project is large and has objects more than 1MB which i need to save to memcached , well , i can't ! because the max_item_size is 1MB , anyway to edit that ?
Thank you
Limitations. There are four key limitations in memcached to keep in mind: The key used is a string with a maximum length of 250 bytes. The value has a 1 megabyte size limit, which can be increased with the –I parameter.
First, when memcached gets full, it will start removing items from the cache using the Least Recently Used algorithm. Second, you can have multiple instances of memcached running, adding them gets complicated because it will change the hashing algorithm used to determine which cache the data is in.
Set the amount of memory allocated to memcached for object storage. Default is 64MB. To increase the amount of memory allocated for the cache, use the -m option to specify the amount of RAM to be allocated (in megabytes).
They both have very basic difference while storing value. Memcache mostly considers every value as string whereas Memcached stores it value's original type.
You can change the limit quickly by edit the configuration file [/etc/memcached.conf] adding:
# Increase limit
-I 128M
Or if you have trouble with SO config run it with command line directly
memcached -I 128M
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With