Back to Website
Show / Hide Table of Contents

Class Cache<T>

Inheritance
System.Object
Cache<T>
Implements
ICache<T>
System.IDisposable
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: Aurigma.DesignAtoms.Common.Caching
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class Cache<T> : ICache<T>, IDisposable
Type Parameters
Name Description
T

Constructors

Cache(String, MemoryCache, CacheItemPolicy)

Declaration
public Cache(string name, MemoryCache memoryCache, CacheItemPolicy cacheItemPolicy)
Parameters
Type Name Description
System.String name
System.Runtime.Caching.MemoryCache memoryCache
System.Runtime.Caching.CacheItemPolicy cacheItemPolicy

Methods

Add(String, T)

Declaration
public bool Add(string key, T value)
Parameters
Type Name Description
System.String key
T value
Returns
Type Description
System.Boolean

ClearAll()

Declaration
public void ClearAll()

Dispose()

Declaration
public void Dispose()

Get(String)

Declaration
public T Get(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
T

Remove(String)

Declaration
public void Remove(string key)
Parameters
Type Name Description
System.String key

Set(String, T)

Declaration
public void Set(string key, T value)
Parameters
Type Name Description
System.String key
T value

Implements

ICache<T>
System.IDisposable
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback