增加项目最大大小在memcached中? [英] increase item max size in memcached?

查看:94
本文介绍了增加项目最大大小在memcached中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的centos服务器上使用memcached,我的项目很大,有超过1MB的对象,我需要保存到memcached,好吧,我不能!因为max_item_size为1MB,还是可以编辑吗?

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 ?

谢谢

推荐答案

您可以通过编辑配置文件[/etc/memcached.conf]添加以下内容来快速更改限制:

You can change the limit quickly by edit the configuration file [/etc/memcached.conf] adding:

# Increase limit 
-I 128M

或者如果您对SO config遇到问题,请直接通过命令行运行

Or if you have trouble with SO config run it with command line directly

memcached -I 128M

这篇关于增加项目最大大小在memcached中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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