add code for cache, not tested.
Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>
fix bug.
Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>