コード例 #1
0
        public static ICache GetCurrentCache(CacheSupport type)
        {
            switch (type)
            {
            case CacheSupport.Test:
                return(new TestCacheImp());

            case CacheSupport.Redis:
                break;

            default:
                break;
            }

            return(null);
        }
コード例 #2
0
ファイル: CacheFactory.cs プロジェクト: laball/demo
        public static ICache GetCurrentCache(CacheSupport type)
        {
            switch (type)
            {
                case CacheSupport.Test:
                    return new TestCacheImp();

                case CacheSupport.Redis:
                    break;

                default:
                    break;
            }

            return null;
        }