读书人

memcache中的key为何要用md5处理

发布时间: 2012-10-08 19:54:56 作者: rapoo

memcache中的key为什么要用md5处理

官方的说法是:

“A few years ago, we decided to md5 all of our cache keys. We did this because at the time memcached (which is what memcachedb is based on) could only take keys of a certain length. In fact, the version it is based on still has this limitation. MD5ing the keys was a good solution to this problem, so we thought.”

主要是为了让key有一个固定的长度,方便索引。

?

memcached 协议:

http://www.cnblogs.com/kevintian/articles/1197681.html

?

http://wiki.chenlb.com/solr/doku.php

读书人网 >其他相关

热点推荐