Object in cache does not expire

Topics: Developer Forum, User Forum
Oct 22, 2010 at 7:44 AM

I have set up the server to make timebased service cache cleanup by setting the following in the config file on the server:

<add key="ServiceCacheCleanup" value="TIMEBASED" />

  On the client i am adding an object to the cache with the following row:

IndexusDistributionCache.SharedCache.Add(key, obj, DateTime.Now.AddSeconds(30))

As you see i want this object to expire in 30 seconds. But when monitoring the server the cleanup job never removes the object from the cache.

Ideas anyone?