CacheItemPolicy.SlidingExpiration Propriedade
Definição
Obtém ou define um valor que indica se uma entrada de cache deve ser removida caso ela não tenha sido acessada em um determinado período de tempo.Gets or sets a value that indicates whether a cache entry should be evicted if it has not been accessed in a given span of time.
public:
property TimeSpan SlidingExpiration { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan SlidingExpiration { get; set; }
member this.SlidingExpiration : TimeSpan with get, set
Public Property SlidingExpiration As TimeSpan
Valor da propriedade
Um período de tempo em que uma entrada de cache deve ser acessada antes que a entrada de cache seja removida dele.A span of time within which a cache entry must be accessed before the cache entry is evicted from the cache. O padrão é NoSlidingExpiration, o que significa que o item não deve ser expirado com base em um período de tempo.The default is NoSlidingExpiration, meaning that the item should not be expired based on a time span.