what is the max key length and max size of value in memcached?

只谈情不闲聊 提交于 2019-12-05 15:18:45

问题


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.



来源:https://stackoverflow.com/questions/42299664/what-is-the-max-key-length-and-max-size-of-value-in-memcached

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!