Class ClientCachePolicy
Defines a policy for a cache
Inheritance
System.Object
ClientCachePolicy
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Client.Configuration
Assembly: ImageVault.Client.dll
Syntax
public class ClientCachePolicy
Constructors
ClientCachePolicy(Int32, ClientCacheExpirations)
Declaration
public ClientCachePolicy(int duration, ClientCacheExpirations expiration)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | duration | |
ClientCacheExpirations | expiration |
Properties
AbsoluteExpiration
The current absolute expiration of the policy.
Declaration
public DateTime AbsoluteExpiration { get; }
Property Value
Type | Description |
---|---|
System.DateTime | Will return System.Web.Caching.Cache.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 System.Web.Caching.Cache.NoSlidingExpiration if Expiration is not Sliding |