Caching/ForgeTrust.Runnable.Caching/IMemo.cs
IMemo
Type
IMemo
Provides memoized, cache-backed access to expensive computations with automatic
key generation and thundering-herd protection.
Method
GetAsync<TResult>(Func<Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path and line number.
Method
GetAsync<TResult>(Func<CancellationToken, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path and line number.
The is forwarded to the factory for cooperative cancellation.
Method
GetAsync<TArg, TResult>(TArg, Func<TArg, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and .
Method
GetAsync<TArg, TResult>(TArg, Func<TArg, CancellationToken, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and .
The is forwarded to the factory for cooperative cancellation.
Method
GetAsync<TArg1, TArg2, TResult>(TArg1, TArg2, Func<TArg1, TArg2, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
Method
GetAsync<TArg1, TArg2, TResult>(TArg1, TArg2, Func<TArg1, TArg2, CancellationToken, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
The is forwarded to the factory for cooperative cancellation.
Method
GetAsync<TArg1, TArg2, TArg3, TResult>(TArg1, TArg2, TArg3, Func<TArg1, TArg2, TArg3, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
Method
GetAsync<TArg1, TArg2, TArg3, TResult>(TArg1, TArg2, TArg3, Func<TArg1, TArg2, TArg3, CancellationToken, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
The is forwarded to the factory for cooperative cancellation.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TResult>(TArg1, TArg2, TArg3, TArg4, Func<TArg1, TArg2, TArg3, TArg4, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TResult>(TArg1, TArg2, TArg3, TArg4, Func<TArg1, TArg2, TArg3, TArg4, CancellationToken, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
The is forwarded to the factory for cooperative cancellation.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(TArg1, TArg2, TArg3, TArg4, TArg5, Func<TArg1, TArg2, TArg3, TArg4, TArg5, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(TArg1, TArg2, TArg3, TArg4, TArg5, Func<TArg1, TArg2, TArg3, TArg4, TArg5, CancellationToken, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
The is forwarded to the factory for cooperative cancellation.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>(TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, Func<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>(TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, Func<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, CancellationToken, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
The is forwarded to the factory for cooperative cancellation.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>(TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, Func<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>(TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, Func<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, CancellationToken, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
The is forwarded to the factory for cooperative cancellation.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>(TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, Func<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
Method
GetAsync<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>(TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, Func<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, CancellationToken, Task<TResult>>, CachePolicy, CancellationToken, string, int)
Returns a cached result or invokes to compute and cache it.
The cache key is automatically derived from the caller file path, line number, and the provided arguments.
The is forwarded to the factory for cooperative cancellation.