InternalCacheHelperGetCachedItemT Method (DictionaryT, InternalCacheItem, T, Int32) |
Search cache
Namespace:
Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:
Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax public static InternalCacheItem GetCachedItem<T>(
Dictionary<T, InternalCacheItem> cache,
T key,
int cacheTime
)
Public Shared Function GetCachedItem(Of T) (
cache As Dictionary(Of T, InternalCacheItem),
key As T,
cacheTime As Integer
) As InternalCacheItem
public:
generic<typename T>
static InternalCacheItem^ GetCachedItem(
Dictionary<T, InternalCacheItem^>^ cache,
T key,
int cacheTime
)
static member GetCachedItem :
cache : Dictionary<'T, InternalCacheItem> *
key : 'T *
cacheTime : int -> InternalCacheItem
Parameters
- cache
- Type: System.Collections.GenericDictionaryT, InternalCacheItem
The cache - key
- Type: T
Key value - cacheTime
- Type: SystemInt32
The cache time.
Type Parameters
- T
- Data type of the key to search for
Return Value
Type:
InternalCacheItemThe cached item or null
See Also