the distribute algorithm which wrote with java, support for memcaced and redis.