摘要:
# -*- coding: utf-8 -*-"""一致性哈希算法 python实现参考http://weblogs.java.net/blog/2007/11/27/consistent-hashinghttp://code.google.com/p/flexihash/http://www.codinglabs.org/html/consistent-hashing.html"""import hashlibclass ConsistentHash(object): def __init__(self, hasher=None, 阅读全文
posted @ 2013-01-17 12:03 蛇小狼 阅读(1031) 评论(0) 推荐(0) 编辑