refactory CacheProvider
Merge pull request #3 from TimGuan/master

refactory CacheProvider