add dump and load method of cache