memcached的最大密钥长度和值的最大大小是多少? [英] what is the max key length and max size of value in memcached?

查看:80
本文介绍了memcached的最大密钥长度和值的最大大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用最新的memcached,请问我可以在memcached中存储的最大密钥长度和最大大小是多少?

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 ?

如何将memcached与spring集成,请问有什么想法.

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

推荐答案

如果您查看

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

默认情况下,对象的最大大小为1MB.但是,有一种简单的方法可以更改配置中的内容,以进行更改.您可以查看 .

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.

关于将memcached与spring集成时,不是很确定,但是您可以查看.在此处.

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

希望这会有所帮助.

这篇关于memcached的最大密钥长度和值的最大大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆