CacheFactory.cs 378 B

12345678910111213141516171819
  1. namespace Cache
  2. {
  3. /// <summary>
  4. /// 缓存工厂类
  5. /// </summary>
  6. public class CacheFactory
  7. {
  8. //TODO 加入配置文件
  9. /// <summary>
  10. /// 定义通用的Repository
  11. /// </summary>
  12. /// <returns></returns>
  13. public static ICache GetCacheInstance()
  14. {
  15. return new WebCache();
  16. }
  17. }
  18. }