CB2-20200827ONU\Administrator
2021-10-08 d789099e9dc45e7fa3ee0eb73ee97f80b1963466
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace CY.Infrastructure.Cache
{
    /// <summary>
    /// 获取缓冲实例工厂
    /// </summary>
    public class CacheFactory
    {
        private static ICacheStrategy _cache;
 
        public static void InitializeCacheFactory(ICacheStrategy cache)
        {
            _cache = cache;
        }
 
        public static ICacheStrategy GetCacher()
        {
            return _cache;
        }
    }
}