Class ClientCachePolicy
Defines a policy for a cache
Inheritance
System.Object
ClientCachePolicy
Namespace: ImageVault.Client.Configuration
Assembly: ImageVault.Client.dll
Syntax
public class ClientCachePolicy : Object
Constructors
ClientCachePolicy()
Default constructor
Declaration
public ClientCachePolicy()
ClientCachePolicy(Int32, ClientCacheExpirations)
Declaration
public ClientCachePolicy(int duration, ClientCacheExpirations expiration)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | duration | |
ClientCacheExpirations | expiration |
Fields
NoAbsoluteExpiration
Constant for no Absolute expiration (Max value)
Declaration
public static readonly DateTime NoAbsoluteExpiration
Field Value
Type | Description |
---|---|
System.DateTime |
NoSlidingExpiration
Constant for no Sliding expiration (Zero)
Declaration
public static readonly TimeSpan NoSlidingExpiration
Field Value
Type | Description |
---|---|
System.TimeSpan |
Properties
AbsoluteExpiration
The current absolute expiration of the policy.
Declaration
public DateTime AbsoluteExpiration { get; }
Property Value
Type | Description |
---|---|
System.DateTime | Will return NoAbsoluteExpiration if Expiration is not Absolute |
Duration
The duration for this policy
Declaration
public int Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Expiration
The ClientCacheExpirations for this policy
Declaration
public ClientCacheExpirations Expiration { get; set; }
Property Value
Type | Description |
---|---|
ClientCacheExpirations |
SlidingExpiration
The current sliding expiration of the policy.
Declaration
public TimeSpan SlidingExpiration { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan | Will return NoSlidingExpiration if Expiration is not Sliding |