what is the max key length and max size of value i

2020-07-02 10:14发布

问题:

I am using the memcached latest , may i know what is the max key length ,and max size of the value we can store in the memcached ?

How to integrate the memcached with spring , any idea please .

回答1:

If you look at the source the max size of the key is 250 bytes. (look for the KEY_MAX_LENGTH key)

The Maximum size of the object is 1MB by default. But there is an easy way where you can change that by making minor changes in the config. You can look at this.

On integrating memcached with spring, Am not very sure, But you can look at this. It has details on how to use it here.

Hope this helps.