implement the local cache--liyazhou