Class SdkCache
SDK-wide cache. Provides access to caches specific to a particular set of credentials and target region.
public static class SdkCache
- Inheritance
-
SdkCache
- Inherited Members
Methods
Clear()
Clear all caches
public static void Clear()
Clear(object)
Clear all caches of a particular type
public static void Clear(object cacheType)
Parameters
cacheType
object
GetCache<TKey, TValue>(AmazonServiceClient, object, IEqualityComparer<TKey>)
Retrieve a cache of a specific type for a client object. The client object can be null in cases where a cache does not correspond to a specific AWS account or target region.
public static ICache<TKey, TValue> GetCache<TKey, TValue>(AmazonServiceClient client, object cacheIdentifier, IEqualityComparer<TKey> keyComparer)
Parameters
client
AmazonServiceClientcacheIdentifier
objectkeyComparer
IEqualityComparer<TKey>
Returns
- ICache<TKey, TValue>
Type Parameters
TKey
TValue
GetCache<TKey, TValue>(object, object, IEqualityComparer<TKey>)
Retrieve a cache of a specific type for a client object. The client object can be null in cases where a cache does not correspond to a specific AWS account or target region.
public static ICache<TKey, TValue> GetCache<TKey, TValue>(object client, object cacheIdentifier, IEqualityComparer<TKey> keyComparer)
Parameters
client
objectcacheIdentifier
objectkeyComparer
IEqualityComparer<TKey>
Returns
- ICache<TKey, TValue>
Type Parameters
TKey
TValue