# Microsoft.Extensions.Caching.Memory

``` diff
 namespace Microsoft.Extensions.Caching.Memory {
     public interface IMemoryCache : IDisposable {
+        MemoryCacheStatistics? GetCurrentStatistics();
     }
     public class MemoryCache : IDisposable, IMemoryCache {
+        public MemoryCacheStatistics? GetCurrentStatistics();
     }
     public class MemoryCacheOptions : IOptions<MemoryCacheOptions> {
+        public bool TrackStatistics { get; set; }
     }
+    public class MemoryCacheStatistics {
+        public MemoryCacheStatistics();
+        public long CurrentEntryCount { get; set; }
+        public long? CurrentEstimatedSize { get; set; }
+        public long TotalHits { get; set; }
+        public long TotalMisses { get; set; }
+    }
 }
```

