What is the maximum key length and maximum value size in memcached?

I use the latest memcached, can I know what the maximum key length is and the maximum size of the value that we can save in memcached?

How to integrate memcached using spring, any idea please.

+6
source share
1 answer

If you look at the source , the maximum key size is 250 bytes. (find key KEY_MAX_LENGTH )

The default maximum object size is 1 MB. But there is an easy way by which you can change this by making small changes to the config. You can watch .

When integrating memcached with spring, I'm not very sure, but you can see this . It has information on how to use it here .

Hope this helps.

+19
source

Source: https://habr.com/ru/post/1015065/


All Articles