refactory CacheProvider

refactory CacheProvider