File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
BitFaster.Caching.Benchmarks/Lru Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ Microsoft.Extensions.Caching.Memory.MemoryCache exMemoryCache
6666 [ GlobalSetup ]
6767 public void GlobalSetup ( )
6868 {
69- memoryCache . Set ( key . ToString ( ) , "1" , new System . Runtime . Caching . CacheItemPolicy ( ) ) ;
70- exMemoryCache . Set ( key , "1" ) ;
69+ memoryCache . Set ( key . ToString ( ) , 1 , new System . Runtime . Caching . CacheItemPolicy ( ) ) ;
70+ exMemoryCache . Set ( key , 1 ) ;
7171 }
7272
7373 [ GlobalCleanup ]
@@ -147,15 +147,15 @@ public int ClassicLru()
147147 }
148148
149149 [ Benchmark ( ) ]
150- public object RuntimeMemoryCacheGet ( )
150+ public int RuntimeMemoryCacheGet ( )
151151 {
152- return memoryCache . Get ( "1" ) ;
152+ return ( int ) memoryCache . Get ( "1" ) ;
153153 }
154154
155155 [ Benchmark ( ) ]
156- public object ExtensionsMemoryCacheGet ( )
156+ public int ExtensionsMemoryCacheGet ( )
157157 {
158- return exMemoryCache . Get ( 1 ) ;
158+ return ( int ) exMemoryCache . Get ( 1 ) ;
159159 }
160160
161161 public class MemoryCacheOptionsAccessor
You can’t perform that action at this time.
0 commit comments