c# - what happen to sliding expiration after it accessed -
according msdn , cache set sliding expiration gets expired if hasn't been accessed within specified time interval.
my question cache entry removed after time interval has elapsed or removed when next code statement tries access , .net realizes has expired ?
found below caching the link azure
there 3 types of expiration type: none, absolute, , sliding window. these configure how time live (min) used determine expiration. default expiration type absolute, means countdown timer item's expiration begins when item placed cache. once specified amount of time has elapsed item, item expires. if sliding window specified, expiration countdown item reset each time item accessed in cache, , item not expire until specified amount of time has elapsed since last access. if none specified, time live (min) must set 0, , items not expire, , remain valid long in cache.
so, expiration countdown reset if item accessed within sliding window.
Comments
Post a Comment