原贴:http://www.ourlinux.net/faq/memcache-can-write-max-bytes/
Memcache可写的最大字节数
Written by bixuan on 2008年06月20号 – 09:44
做了一下测试,memcache的key+value的总最大可写字节数是:1048521 bytes
++++++++++++++++ Test Start ++++++++++++++++
Test Date: 2008-06-20 09:19:25
File Name: /root/kernel-smp-2.6.9-42.bixuan.2.EL.i686.rpm
Memcache: 1.2.5
File Size: 1048489 bytes
File key: 1054b83a3ad0efef6a2f0c78ad50de8c
Key Size: 32
Key+Value Max Size: 1048521 bytes
Write Memcache: OK
Read Memcache: OK
—————- Test End —————-
其实也就是:1024 * 1024 - 55 = 1048521 bytes,这个在实际的code中还是小心点 。给自己提个醒!^_^
Tags: bytes, memcache
Posted in FAQ, 运维小技巧 |