public void CacheAlternitiveSyntaxFive() { TestClass obj = new TestClass(); var sum = CacheExtension.Cache(() => TestClass.StaticAdd(4, 4), "FourPlusFour"); Assert.Equal(8, sum); }
public void CacheAlternitiveSyntaxFour() { TestClass obj = new TestClass(); var sum = CacheExtension.Cache(() => obj.Add(12, 2), "TwelvePlusTwo"); Assert.Equal(14, sum); }
public void CacheAlternitiveSyntaxTwo() { TestClass obj = new TestClass(); var sum = CacheExtension.Cache(() => TestClass.StaticAdd(4, 3)); Assert.Equal(7, sum); }
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; }