This project is read-only.
1

Closed

sysCache timout not working

description

Hi,
Here is my below timeout setting but when I do try to get it the cached item doesn't expire even after 3s. Can you please take a look and let me know if I'm doing something wrong?
<cacheManager xmlns="http://tempuri.org/CacheManagerCfg.xsd">
  <!-- Add your custom cache configuration here -->
  <managers>
    <!-- 
      you can define as many named caches as you want and initialize them with CacheFactory.LoadConfiguration(name) 
      Disable Performance Counter since it requires registry access.
    -->
    <cache name="myCache" updateMode="Up" enableStatistics="true" enablePerformanceCounters="false">
      <handle ref="sysCache" name="myHandle" expirationMode="Absolute" timeout="3s" />
    </cache>
  </managers>
  
  <cacheHandles>
    <!-- all available cache handles must be registered here before you can use it from managers configuration -->
    <handleDef id="genericDictionary" type="CacheManager.Core.Cache.DictionaryCacheHandle`1, CacheManager.Core" />
    <handleDef id="sysCache" type="CacheManager.SystemRuntimeCaching.MemoryCacheHandle`1, CacheManager.SystemRuntimeCaching" />
  </cacheHandles> 
</cacheManager>
my Autofac injection
            // cache manager
            builder.Register<ICacheManager<object>>
            (
                c => CacheFactory.FromConfiguration<object>("myCache")
            ).SingleInstance();
Closed Jun 17, 2014 at 9:04 AM by MichaConrad

comments