1
我想监视我的Enterprize图书馆高速缓存的内存消耗,键和值。我搜索了stackoverflow并得到了near answer。但我不明白我该怎么办:监视器企业库高速缓存
您可以参考下载的sourced作为项目修改原始的CacheManager以公开具有名为CurrentCacheState属性的缓存实例。
任何想法?
我想监视我的Enterprize图书馆高速缓存的内存消耗,键和值。我搜索了stackoverflow并得到了near answer。但我不明白我该怎么办:监视器企业库高速缓存
您可以参考下载的sourced作为项目修改原始的CacheManager以公开具有名为CurrentCacheState属性的缓存实例。
任何想法?
试试这个
ICacheManager manager = EnterpriseLibraryContainer.Current.GetInstance<ICacheManager>("your cache name");
Cache cache = EnterpriseLibraryContainer.Current.GetInstance<Cache>("your cache name");
然后你可以做的东西与
cache.CurrentCacheState