Example #1
0
        public void CacheAlternitiveSyntaxFive()
        {
            TestClass obj = new TestClass();

            var sum = CacheExtension.Cache(() => TestClass.StaticAdd(4, 4), "FourPlusFour");

            Assert.Equal(8, sum);
        }
Example #2
0
        public void CacheAlternitiveSyntaxFour()
        {
            TestClass obj = new TestClass();

            var sum = CacheExtension.Cache(() => obj.Add(12, 2), "TwelvePlusTwo");

            Assert.Equal(14, sum);
        }
Example #3
0
        public void CacheAlternitiveSyntaxTwo()
        {
            TestClass obj = new TestClass();

            var sum = CacheExtension.Cache(() => TestClass.StaticAdd(4, 3));

            Assert.Equal(7, sum);
        }
Example #4
0
        public void CacheAlternitiveSyntax()
        {
            TestClass obj = new TestClass();

            var sum = CacheExtension.Cache(() => obj.Add(3, 3));

            Assert.Equal(6, sum);
        }
 public void Setup()
 {
     SetupBenchmark();
     CacheExtension.Register(CacheStack);
 }
 public string Refresh()
 {
     CacheExtension.RemoveAll();
     return(toJson(G.L["refresh_ok"]));
 }
 public _CacheLoader_75(CacheExtension _enclosing)
 {
     this._enclosing = _enclosing;
 }