Class CacheCollection
Implements a cache for an application. This class cannot be inherited.
Inheritance
Implements
Namespace: Cuemon.Runtime.Caching
Assembly: Cuemon.Runtime.Caching.dll
Syntax
public sealed class CacheCollection : IEnumerable<KeyValuePair<long, object>>, IEnumerable
Properties
| Improve this DocEnableExpirationTimer
Gets or sets a value indicating whether a timer regularly should clean up expired cache items.
Declaration
public bool EnableExpirationTimer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Item[String]
Gets the cached item with the specified key
.
Declaration
public object this[string key] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Property Value
Type | Description |
---|---|
System.Object | The cached item matching the specified |
Item[String, String]
Gets the cached item with the specified key
and group
.
Declaration
public object this[string key, string group] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.String | group |
Property Value
Type | Description |
---|---|
System.Object | The cached item matching the specified |
Methods
| Improve this DocAdd(String, Object)
Adds the specified key
and value
to the cache.
Declaration
public void Add(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Add(String, Object, IDependency[])
Adds the specified key
and value
to the cache.
Declaration
public void Add(string key, object value, params IDependency[] dependencies)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
IDependency[] | dependencies | The dependencies for the |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Add(String, Object, IEnumerable<IDependency>)
Adds the specified key
and value
to the cache.
Declaration
public void Add(string key, object value, IEnumerable<IDependency> dependencies)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
System.Collections.Generic.IEnumerable<IDependency> | dependencies | The dependencies for the |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Add(String, Object, DateTime)
Adds the specified key
and value
to the cache.
Declaration
public void Add(string key, object value, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
System.DateTime | absoluteExpiration | The time at which the added object expires and is removed from the cache. |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Add(String, Object, String)
Adds the specified key
and value
to the cache.up.
Declaration
public void Add(string key, object value, string group)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
System.String | group | The group to associate the |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Add(String, Object, String, IDependency[])
Adds the specified key
and value
to the cache.
Declaration
public void Add(string key, object value, string group, params IDependency[] dependencies)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
System.String | group | The group to associate the |
IDependency[] | dependencies | The dependencies for the |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Add(String, Object, String, IEnumerable<IDependency>)
Adds the specified key
and value
to the cache.
Declaration
public void Add(string key, object value, string group, IEnumerable<IDependency> dependencies)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
System.String | group | The group to associate the |
System.Collections.Generic.IEnumerable<IDependency> | dependencies | The dependencies for the |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Add(String, Object, String, DateTime)
Adds the specified key
and value
to the cache.
Declaration
public void Add(string key, object value, string group, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
System.String | group | The group to associate the |
System.DateTime | absoluteExpiration | The time at which the added object expires and is removed from the cache. |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Add(String, Object, String, TimeSpan)
Adds the specified key
and value
to the cache.
Declaration
public void Add(string key, object value, string group, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
System.String | group | The group to associate the |
System.TimeSpan | slidingExpiration | The interval between the time the added object was last accessed and the time at which that object expires. If this value is the equivalent of 20 minutes, the object expires and is removed from the cache 20 minutes after it was last accessed. |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Add(String, Object, TimeSpan)
Adds the specified key
and value
to the cache.
Declaration
public void Add(string key, object value, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Object | value | The object to be inserted in the cache. |
System.TimeSpan | slidingExpiration | The interval between the time the added object was last accessed and the time at which that object expires. If this value is the equivalent of 20 minutes, the object expires and is removed from the cache 20 minutes after it is last accessed. |
Remarks
This method will not throw an System.ArgumentException in case of an existing cache item whose key matches the key parameter.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Clear()
Removes all keys and values from the System.Collections.Generic.Dictionary<TKey, TValue>.
Declaration
public void Clear()
Clear(String)
Removes all keys and values matching the specified group from the System.Collections.Generic.Dictionary<TKey, TValue>.
Declaration
public void Clear(string group)
Parameters
Type | Name | Description |
---|---|---|
System.String | group |
ContainsKey(String)
Determines whether the System.Collections.Generic.Dictionary<TKey, TValue> contains the specified key.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to locate in the System.Collections.Generic.Dictionary<TKey, TValue>. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ContainsKey(String, String)
Determines whether the System.Collections.Generic.Dictionary<TKey, TValue> contains the specified key.
Declaration
public bool ContainsKey(string key, string group)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to locate in the System.Collections.Generic.Dictionary<TKey, TValue>. |
System.String | group | The associated group of the key to locate. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Count()
Gets the number of elements contained in the System.Collections.Generic.ICollection<T>.
Declaration
public int Count()
Returns
Type | Description |
---|---|
System.Int32 |
Count(String)
Gets the number of elements contained in the specified group of the System.Collections.Generic.ICollection<T>.
Declaration
public int Count(string group)
Parameters
Type | Name | Description |
---|---|---|
System.String | group | The associated group to filter the count by. |
Returns
Type | Description |
---|---|
System.Int32 | The number of elements contained in the System.Collections.Generic.ICollection<T>. |
Get<T>(String)
Retrieves the specified item from the CacheCollection.
Declaration
public T Get<T>(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The identifier of the cache item to retrieve. |
Returns
Type | Description |
---|---|
T | The retrieved cache item, or the default value of the type parameter T if the key is not found. |
Type Parameters
Name | Description |
---|---|
T | The type of the item in the CacheCollection. |
Get<T>(String, String)
Retrieves the specified item from the associated group of the CacheCollection.
Declaration
public T Get<T>(string key, string group)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The identifier of the cache item to retrieve. |
System.String | group | The associated group of the cache item to retrieve. |
Returns
Type | Description |
---|---|
T | The retrieved cache item, or the default value of the type parameter T if the key is not found. |
Type Parameters
Name | Description |
---|---|
T | The type of the item in the CacheCollection. |
GetEnumerator()
Retrieves an enumerator that iterates through the key settings and their values contained in the cache.
Declaration
public IEnumerator<KeyValuePair<long, object>> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.Int64, System.Object>> | A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
Remarks
All keys are hashed internally and will not provide useful information.
GetOrAdd<TResult>(String, Func<TResult>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<TResult>(string key, Func<TResult> resolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<TResult> | resolver | The function delegate that is used to resolve a value for the |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
TResult | The type of the value in the cache. |
GetOrAdd<TResult>(String, Func<TResult>, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<TResult>(string key, Func<TResult> resolver, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<TResult> | resolver | The function delegate that is used to resolve a value for the |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
TResult | The type of the value in the cache. |
GetOrAdd<TResult>(String, Func<TResult>, Func<IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<TResult>(string key, Func<TResult> resolver, Func<IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<TResult> | resolver | The function delegate that is used to resolve a value for the |
System.Func<System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
TResult | The type of the value in the cache. |
GetOrAdd<TResult>(String, Func<TResult>, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<TResult>(string key, Func<TResult> resolver, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<TResult> | resolver | The function delegate that is used to resolve a value for the |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
TResult | The type of the value in the cache. |
GetOrAdd<TResult>(String, String, Func<TResult>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<TResult>(string key, string group, Func<TResult> resolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<TResult> | resolver | The function delegate that is used to resolve a value for the |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
TResult | The type of the value in the cache. |
GetOrAdd<TResult>(String, String, Func<TResult>, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<TResult>(string key, string group, Func<TResult> resolver, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<TResult> | resolver | The function delegate that is used to resolve a value for the |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
TResult | The type of the value in the cache. |
GetOrAdd<TResult>(String, String, Func<TResult>, Func<IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<TResult>(string key, string group, Func<TResult> resolver, Func<IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<TResult> | resolver | The function delegate that is used to resolve a value for the |
System.Func<System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
TResult | The type of the value in the cache. |
GetOrAdd<TResult>(String, String, Func<TResult>, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<TResult>(string key, string group, Func<TResult> resolver, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<TResult> | resolver | The function delegate that is used to resolve a value for the |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T, TResult>(String, Func<T, TResult>, T)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T, TResult>(string key, Func<T, TResult> resolver, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T, TResult> | resolver | The function delegate that is used to resolve a value for the |
T | arg | The parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T, TResult>(String, Func<T, TResult>, T, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T, TResult>(string key, Func<T, TResult> resolver, T arg, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T, TResult> | resolver | The function delegate that is used to resolve a value for the |
T | arg | The parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T, TResult>(String, Func<T, TResult>, T, Func<T, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T, TResult>(string key, Func<T, TResult> resolver, T arg, Func<T, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T, TResult> | resolver | The function delegate that is used to resolve a value for the |
T | arg | The parameter of the function delegate |
System.Func<T, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T, TResult>(String, Func<T, TResult>, T, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T, TResult>(string key, Func<T, TResult> resolver, T arg, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T, TResult> | resolver | The function delegate that is used to resolve a value for the |
T | arg | The parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T, TResult>(String, String, Func<T, TResult>, T)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T, TResult>(string key, string group, Func<T, TResult> resolver, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T, TResult> | resolver | The function delegate that is used to resolve a value for the |
T | arg | The parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T, TResult>(String, String, Func<T, TResult>, T, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T, TResult>(string key, string group, Func<T, TResult> resolver, T arg, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T, TResult> | resolver | The function delegate that is used to resolve a value for the |
T | arg | The parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T, TResult>(String, String, Func<T, TResult>, T, Func<T, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T, TResult>(string key, string group, Func<T, TResult> resolver, T arg, Func<T, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T, TResult> | resolver | The function delegate that is used to resolve a value for the |
T | arg | The parameter of the function delegate |
System.Func<T, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T, TResult>(String, String, Func<T, TResult>, T, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T, TResult>(string key, string group, Func<T, TResult> resolver, T arg, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T, TResult> | resolver | The function delegate that is used to resolve a value for the |
T | arg | The parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, TResult>(String, Func<T1, T2, TResult>, T1, T2)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, TResult>(string key, Func<T1, T2, TResult> resolver, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, TResult>(String, Func<T1, T2, TResult>, T1, T2, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, TResult>(string key, Func<T1, T2, TResult> resolver, T1 arg1, T2 arg2, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, TResult>(String, Func<T1, T2, TResult>, T1, T2, Func<T1, T2, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, TResult>(string key, Func<T1, T2, TResult> resolver, T1 arg1, T2 arg2, Func<T1, T2, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
System.Func<T1, T2, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, TResult>(String, Func<T1, T2, TResult>, T1, T2, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, TResult>(string key, Func<T1, T2, TResult> resolver, T1 arg1, T2 arg2, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, TResult>(String, String, Func<T1, T2, TResult>, T1, T2)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, TResult>(string key, string group, Func<T1, T2, TResult> resolver, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, TResult>(String, String, Func<T1, T2, TResult>, T1, T2, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, TResult>(string key, string group, Func<T1, T2, TResult> resolver, T1 arg1, T2 arg2, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, TResult>(String, String, Func<T1, T2, TResult>, T1, T2, Func<T1, T2, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, TResult>(string key, string group, Func<T1, T2, TResult> resolver, T1 arg1, T2 arg2, Func<T1, T2, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
System.Func<T1, T2, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, TResult>(String, String, Func<T1, T2, TResult>, T1, T2, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, TResult>(string key, string group, Func<T1, T2, TResult> resolver, T1 arg1, T2 arg2, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, TResult>(String, Func<T1, T2, T3, TResult>, T1, T2, T3)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, TResult>(string key, Func<T1, T2, T3, TResult> resolver, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, TResult>(String, Func<T1, T2, T3, TResult>, T1, T2, T3, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, TResult>(string key, Func<T1, T2, T3, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, TResult>(String, Func<T1, T2, T3, TResult>, T1, T2, T3, Func<T1, T2, T3, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, TResult>(string key, Func<T1, T2, T3, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, Func<T1, T2, T3, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
System.Func<T1, T2, T3, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, TResult>(String, Func<T1, T2, T3, TResult>, T1, T2, T3, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, TResult>(string key, Func<T1, T2, T3, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, TResult>(String, String, Func<T1, T2, T3, TResult>, T1, T2, T3)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, TResult>(string key, string group, Func<T1, T2, T3, TResult> resolver, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, TResult>(String, String, Func<T1, T2, T3, TResult>, T1, T2, T3, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, TResult>(string key, string group, Func<T1, T2, T3, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, TResult>(String, String, Func<T1, T2, T3, TResult>, T1, T2, T3, Func<T1, T2, T3, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, TResult>(string key, string group, Func<T1, T2, T3, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, Func<T1, T2, T3, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
System.Func<T1, T2, T3, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, TResult>(String, String, Func<T1, T2, T3, TResult>, T1, T2, T3, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, TResult>(string key, string group, Func<T1, T2, T3, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, TResult>(String, Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, TResult>(string key, Func<T1, T2, T3, T4, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, TResult>(String, Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, TResult>(string key, Func<T1, T2, T3, T4, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, TResult>(String, Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4, Func<T1, T2, T3, T4, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, TResult>(string key, Func<T1, T2, T3, T4, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Func<T1, T2, T3, T4, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
System.Func<T1, T2, T3, T4, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, TResult>(String, Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, TResult>(string key, Func<T1, T2, T3, T4, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, TResult>(String, String, Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, TResult>(string key, string group, Func<T1, T2, T3, T4, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, TResult>(String, String, Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, TResult>(string key, string group, Func<T1, T2, T3, T4, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, TResult>(String, String, Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4, Func<T1, T2, T3, T4, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, TResult>(string key, string group, Func<T1, T2, T3, T4, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Func<T1, T2, T3, T4, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
System.Func<T1, T2, T3, T4, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, TResult>(String, String, Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, TResult>(string key, string group, Func<T1, T2, T3, T4, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, TResult>(String, Func<T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, TResult>(string key, Func<T1, T2, T3, T4, T5, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, TResult>(String, Func<T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, TResult>(string key, Func<T1, T2, T3, T4, T5, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, TResult>(String, Func<T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5, Func<T1, T2, T3, T4, T5, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, TResult>(string key, Func<T1, T2, T3, T4, T5, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Func<T1, T2, T3, T4, T5, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, TResult>(String, Func<T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, TResult>(string key, Func<T1, T2, T3, T4, T5, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, TResult>(String, String, Func<T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, TResult>(String, String, Func<T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, TResult>(String, String, Func<T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5, Func<T1, T2, T3, T4, T5, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Func<T1, T2, T3, T4, T5, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, TResult>(String, String, Func<T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(String, Func<T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(String, Func<T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(String, Func<T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6, Func<T1, T2, T3, T4, T5, T6, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, Func<T1, T2, T3, T4, T5, T6, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(String, Func<T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6, Func<T1, T2, T3, T4, T5, T6, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, Func<T1, T2, T3, T4, T5, T6, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7, Func<T1, T2, T3, T4, T5, T6, T7, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, Func<T1, T2, T3, T4, T5, T6, T7, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, T7, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7, Func<T1, T2, T3, T4, T5, T6, T7, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, Func<T1, T2, T3, T4, T5, T6, T7, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, T7, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(String, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(string key, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, DateTime)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
System.DateTime | absoluteExpiration | The time at which the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerable<IDependency>>)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the result of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the value in the cache. |
GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(String, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, TimeSpan)
Adds a value to the cache by using the specified function delegate resolver
, if the key
does not already exist in the virtual group
of the cache.
Declaration
public TResult GetOrAdd<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(string key, string group, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> resolver, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The cache key used to identify the item. |
System.String | group | The virtual group to associate the |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | resolver | The function delegate that is used to resolve a value for the |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
System.TimeSpan | slidingExpiration | The interval between the time the return value of |
Returns
Type | Description |
---|---|
TResult | The value for the specified |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the value in the cache. |
Memoize<TResult>(Func<TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<TResult> Memoize<TResult>(Func<TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
TResult | The type of the return value of the function delegate |
Memoize<TResult>(Func<TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<TResult> Memoize<TResult>(Func<TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
TResult | The type of the return value of the function delegate |
Memoize<TResult>(Func<TResult>, Func<IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<TResult> Memoize<TResult>(Func<TResult> method, Func<IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
TResult | The type of the return value of the function delegate |
Memoize<TResult>(Func<TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<TResult> Memoize<TResult>(Func<TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> method, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> method, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | Establishes one or more Dependency relations to this memoized function delegate. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T, TResult>(Func<T, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T, TResult> Memoize<T, TResult>(Func<T, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T, TResult>(Func<T, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T, TResult> Memoize<T, TResult>(Func<T, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T, TResult>(Func<T, TResult>, Func<T, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T, TResult> Memoize<T, TResult>(Func<T, TResult> method, Func<T, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<T, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T, TResult>(Func<T, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T, TResult> Memoize<T, TResult>(Func<T, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, TResult>(Func<T1, T2, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, TResult> Memoize<T1, T2, TResult>(Func<T1, T2, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, TResult>(Func<T1, T2, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, TResult> Memoize<T1, T2, TResult>(Func<T1, T2, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, TResult>(Func<T1, T2, TResult>, Func<T1, T2, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, TResult> Memoize<T1, T2, TResult>(Func<T1, T2, TResult> method, Func<T1, T2, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T1, T2, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<T1, T2, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, TResult>(Func<T1, T2, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, TResult> Memoize<T1, T2, TResult>(Func<T1, T2, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, TResult> Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, TResult> Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult>, Func<T1, T2, T3, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, TResult> Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult> method, Func<T1, T2, T3, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T1, T2, T3, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, TResult> Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, TResult> Memoize<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, TResult> Memoize<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult>, Func<T1, T2, T3, T4, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, TResult> Memoize<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult> method, Func<T1, T2, T3, T4, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T1, T2, T3, T4, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, TResult> Memoize<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, TResult> Memoize<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, TResult> Memoize<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult>, Func<T1, T2, T3, T4, T5, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, TResult> Memoize<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult> method, Func<T1, T2, T3, T4, T5, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T1, T2, T3, T4, T5, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, TResult> Memoize<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, TResult> Memoize<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, TResult> Memoize<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult>, Func<T1, T2, T3, T4, T5, T6, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, TResult> Memoize<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult> method, Func<T1, T2, T3, T4, T5, T6, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T1, T2, T3, T4, T5, T6, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, TResult> Memoize<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult>, Func<T1, T2, T3, T4, T5, T6, T7, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult> method, Func<T1, T2, T3, T4, T5, T6, T7, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T1, T2, T3, T4, T5, T6, T7, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, DateTime)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> method, DateTime absoluteExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.DateTime | absoluteExpiration | The time at which the memoized function delegate expires and is removed from the cache. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerable<IDependency>>)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> method, Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerable<IDependency>> dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, System.Collections.Generic.IEnumerable<IDependency>> | dependencyResolver | The function delegate that is used to assign dependencies to the memoized |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Memoize<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, TimeSpan)
Memoizes the specified method
in the cache for fast access.
Declaration
public Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> Memoize<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> method, TimeSpan slidingExpiration)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | method | The function delegate that is invoked once and then stored in cache for fast access. |
System.TimeSpan | slidingExpiration | The interval between the time the memoized function delegate was last accessed and the time at which that memoization expires. If this value is the equivalent of 20 minutes, the memoization expires and is removed from the cache 20 minutes after it was last accessed. |
Returns
Type | Description |
---|---|
System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> | A memoized function delegate that is otherwise equivalent to |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the function delegate |
Remove(String)
Removes the value with the specified key from the System.Collections.Generic.Dictionary<TKey, TValue>.
Declaration
public bool Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the element to remove. |
Returns
Type | Description |
---|---|
System.Boolean | true if the element is successfully found and removed; otherwise, false. This method returns false if |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Remove(String, String)
Removes the value with the specified key from the associated specified group of the System.Collections.Generic.Dictionary<TKey, TValue>.
Declaration
public bool Remove(string key, string group)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the element to remove. |
System.String | group | The associated group to the key of the element to remove. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
TryGetAdded(String, out DateTime)
Gets the UTC date time value from when this item was added to the CacheCollection.
Declaration
public bool TryGetAdded(string key, out DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the value to get. |
System.DateTime | value | When this method returns, contains the UTC date time value from when this item, with the specified key, was added; otherwise, if no item could be resolved or the item has expired, System.DateTime.MinValue. This parameter is passed uninitialized. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
TryGetAdded(String, String, out DateTime)
Gets the UTC date time value from when this item was added to the CacheCollection.
Declaration
public bool TryGetAdded(string key, string group, out DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the value to get. |
System.String | group | The group of the value to get. |
System.DateTime | value | When this method returns, contains the UTC date time value from when this item, with the specified key, was added; otherwise, if no item could be resolved or the item has expired, System.DateTime.MinValue. This parameter is passed uninitialized. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
TryGetValue<T>(String, out T)
Gets the value associated with the specified key.
Declaration
public bool TryGetValue<T>(string key, out T value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the value to get. |
T | value | When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the |
Returns
Type | Description |
---|---|
System.Boolean | true if the System.Collections.Generic.Dictionary<TKey, TValue> contains an element with the specified key; otherwise, false. |
Type Parameters
Name | Description |
---|---|
T | The type of the item in the CacheCollection. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
TryGetValue<T>(String, String, out T)
Gets the value associated with the specified key and group.
Declaration
public bool TryGetValue<T>(string key, string group, out T value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the value to get. |
System.String | group | The group of the value to get. |
T | value | When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the |
Returns
Type | Description |
---|---|
System.Boolean | true if the System.Collections.Generic.Dictionary<TKey, TValue> contains an element with the specified key; otherwise, false. |
Type Parameters
Name | Description |
---|---|
T | The type of the item in the CacheCollection. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Explicit Interface Implementations
| Improve this DocIEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |