Microsoft.Extensions.Caching.Abstractions
Provide extensions methods for operations.
Sets the priority for keeping the cache entry in the cache during a memory pressure tokened cleanup.
The entry to set the priority for.
The to set on the entry.
The for chaining.
Expire the cache entry if the given expires.
The .
The that causes the cache entry to expire.
The for chaining.
Sets an absolute expiration time, relative to now.
The .
The representing the expiration time relative to now.
The for chaining.
Sets an absolute expiration date for the cache entry.
The .
A representing the expiration time in absolute terms.
The for chaining.
Sets how long the cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
The .
A representing a sliding expiration.
The for chaining.
The given callback will be fired after the cache entry is evicted from the cache.
The .
The callback to run after the entry is evicted.
The for chaining.
The given callback will be fired after the cache entry is evicted from the cache.
The .
The callback to run after the entry is evicted.
The state to pass to the post-eviction callback.
The for chaining.
Sets the value of the cache entry.
The .
The value to set on the .
The for chaining.
Sets the size of the cache entry value.
The .
The size to set on the .
The for chaining.
Applies the values of an existing to the entry.
The .
Set the values of these options on the .
The for chaining.
Specifies how items are prioritized for preservation during a memory pressure triggered cleanup.
The cache entry should be removed as soon as possible during memory pressure triggered cleanup.
The cache entry should be removed if there is no other low priority cache entries during memory pressure triggered cleanup.
The cache entry should be removed only when there is no other low or normal priority cache entries during memory pressure triggered cleanup.
The cache entry should never be removed during memory pressure triggered cleanup.
Specify the reasons why an entry was evicted from the cache.
The item was not removed from the cache.
The item was removed from the cache manually.
The item was removed from the cache because it was overwritten.
The item was removed from the cache because it timed out.
The item was removed from the cache because its token expired.
The item was removed from the cache because it exceeded its capacity.
Represents an entry in the implementation.
When Disposed, is committed to the cache.
Gets the key of the cache entry.
Gets or set the value of the cache entry.
Gets or sets an absolute expiration date for the cache entry.
Gets or sets an absolute expiration time, relative to now.
Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
Gets the instances which cause the cache entry to expire.
Gets or sets the callbacks will be fired after the cache entry is evicted from the cache.
Gets or sets the priority for keeping the cache entry in the cache during a
cleanup. The default is .
Gets or set the size of the cache entry value.
Represents a local in-memory cache whose values are not serialized.
Gets the item associated with this key if present.
An object identifying the requested entry.
The located value or null.
True if the key was found.
Create or overwrite an entry in the cache.
An object identifying the entry.
The newly created instance.
Removes the object associated with the given key.
An object identifying the entry.
Provide extensions methods for operations.
Sets the priority for keeping the cache entry in the cache during a memory pressure tokened cleanup.
The option on which to set the priority.
The to set on the option.
The so that additional calls can be chained.
Sets the size of the cache entry value.
The options to set the entry size on.
The size to set on the .
The so that additional calls can be chained.
Expire the cache entry if the given expires.
The .
The that causes the cache entry to expire.
The so that additional calls can be chained.
Sets an absolute expiration time, relative to now.
The .
The expiration time, relative to now.
The so that additional calls can be chained.
Sets an absolute expiration date for the cache entry.
The .
The expiration time, in absolute terms.
The so that additional calls can be chained.
Sets how long the cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
The .
The sliding expiration time.
The so that additional calls can be chained.
The given callback will be fired after the cache entry is evicted from the cache.
The .
The callback to register for calling after an entry is evicted.
The so that additional calls can be chained.
The given callback will be fired after the cache entry is evicted from the cache.
The .
The callback to register for calling after an entry is evicted.
The state to pass to the callback.
The so that additional calls can be chained.
Represents the cache options applied to an entry of the instance.
Gets or sets an absolute expiration date for the cache entry.
Gets or sets an absolute expiration time, relative to now.
Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
Gets the instances which cause the cache entry to expire.
Gets or sets the callbacks will be fired after the cache entry is evicted from the cache.
Gets or sets the priority for keeping the cache entry in the cache during a
memory pressure triggered cleanup. The default is .
Gets or sets the size of the cache entry value.
Provide extensions methods for operations.
Gets the value associated with this key if present.
The instance this method extends.
The key of the value to get.
The value associated with this key, or null if the key is not present.
Gets the value associated with this key if present.
The type of the object to get.
The instance this method extends.
The key of the value to get.
The value associated with this key, or default(TItem) if the key is not present.
Try to get the value associated with the given key.
The type of the object to get.
The instance this method extends.
The key of the value to get.
The value associated with the given key.
true if the key was found. false otherwise.
Associate a value with a key in the .
The type of the object to set.
The instance this method extends.
The key of the entry to add.
The value to associate with the key.
The value that was set.
Sets a cache entry with the given key and value that will expire in the given duration.
The type of the object to set.
The instance this method extends.
The key of the entry to add.
The value to associate with the key.
The point in time at which the cache entry will expire.
The value that was set.
Sets a cache entry with the given key and value that will expire in the given duration from now.
The type of the object to set.
The instance this method extends.
The key of the entry to add.
The value to associate with the key.
The duration from now after which the cache entry will expire.
The value that was set.
Sets a cache entry with the given key and value that will expire when expires.
The type of the object to set.
The instance this method extends.
The key of the entry to add.
The value to associate with the key.
The that causes the cache entry to expire.
The value that was set.
Sets a cache entry with the given key and value and apply the values of an existing to the created entry.
The type of the object to set.
The instance this method extends.
The key of the entry to add.
The value to associate with the key.
The existing instance to apply to the new entry.
The value that was set.
Gets the value associated with this key if it exists, or generates a new entry using the provided key and a value from the given factory if the key is not found.
The type of the object to get.
The instance this method extends.
The key of the entry to look for or create.
The factory that creates the value associated with this key if the key does not exist in the cache.
The value associated with this key.
Asynchronously gets the value associated with this key if it exists, or generates a new entry using the provided key and a value from the given factory if the key is not found.
The type of the object to get.
The instance this method extends.
The key of the entry to look for or create.
The factory task that creates the value associated with this key if the key does not exist in the cache.
The task object representing the asynchronous operation.
Holds a snapshot of statistics for a memory cache.
Initializes an instance of MemoryCacheStatistics.
Gets the number of instances currently in the memory cache.
Gets an estimated sum of all the values currently in the memory cache.
Returns if size isn't being tracked. The common MemoryCache implementation tracks size whenever a SizeLimit is set on the cache.
Gets the total number of cache misses.
Gets the total number of cache hits.
Represents a callback delegate that will be fired after an entry is evicted from the cache.
Gets or sets the callback delegate that will be fired after an entry is evicted from the cache.
Gets or sets the state to pass to the callback delegate.
Signature of the callback which gets called when a cache entry expires.
The key of the entry being evicted.
The value of the entry being evicted.
The .
The information that was passed when registering the callback.
Extension methods for operations.
Sets an absolute expiration time, relative to now.
The options to be operated on.
The expiration time, relative to now.
Sets an absolute expiration date for the cache entry.
The options to be operated on.
The expiration time, in absolute terms.
Sets how long the cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
The options to be operated on.
The sliding expiration time.
Provides the cache options for an entry in .
Gets or sets an absolute expiration date for the cache entry.
Gets or sets an absolute expiration time, relative to now.
Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
Extension methods for setting data in an .
Sets a sequence of bytes in the specified cache with the specified key.
The cache in which to store the data.
The key to store the data in.
The data to store in the cache.
Thrown when or is null.
Asynchronously sets a sequence of bytes in the specified cache with the specified key.
The cache in which to store the data.
The key to store the data in.
The data to store in the cache.
Optional. A to cancel the operation.
A task that represents the asynchronous set operation.
Thrown when or is null.
Sets a string in the specified cache with the specified key.
The cache in which to store the data.
The key to store the data in.
The data to store in the cache.
Thrown when or is null.
Sets a string in the specified cache with the specified key.
The cache in which to store the data.
The key to store the data in.
The data to store in the cache.
The cache options for the entry.
Thrown when or is null.
Asynchronously sets a string in the specified cache with the specified key.
The cache in which to store the data.
The key to store the data in.
The data to store in the cache.
Optional. A to cancel the operation.
A task that represents the asynchronous set operation.
Thrown when or is null.
Asynchronously sets a string in the specified cache with the specified key.
The cache in which to store the data.
The key to store the data in.
The data to store in the cache.
The cache options for the entry.
Optional. A to cancel the operation.
A task that represents the asynchronous set operation.
Thrown when or is null.
Gets a string from the specified cache with the specified key.
The cache in which to store the data.
The key to get the stored data for.
The string value from the stored cache key.
Asynchronously gets a string from the specified cache with the specified key.
The cache in which to store the data.
The key to get the stored data for.
Optional. A to cancel the operation.
A task that gets the string value from the stored cache key.
Represents a distributed cache of serialized values.
Gets a value with the given key.
A string identifying the requested value.
The located value or null.
Gets a value with the given key.
A string identifying the requested value.
Optional. The used to propagate notifications that the operation should be canceled.
The that represents the asynchronous operation, containing the located value or null.
Sets a value with the given key.
A string identifying the requested value.
The value to set in the cache.
The cache options for the value.
Sets the value with the given key.
A string identifying the requested value.
The value to set in the cache.
The cache options for the value.
Optional. The used to propagate notifications that the operation should be canceled.
The that represents the asynchronous operation.
Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).
A string identifying the requested value.
Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).
A string identifying the requested value.
Optional. The used to propagate notifications that the operation should be canceled.
The that represents the asynchronous operation.
Removes the value with the given key.
A string identifying the requested value.
Removes the value with the given key.
A string identifying the requested value.
Optional. The used to propagate notifications that the operation should be canceled.
The that represents the asynchronous operation.
Abstracts the system clock to facilitate testing.
Retrieves the current system time in UTC.
Provides access to the normal system clock.
Retrieves the current system time in UTC.
Throws an if is null.
The reference type argument to validate as non-null.
The name of the parameter with which corresponds.
Throws either an or an
if the specified string is or whitespace respectively.
String to be checked for or whitespace.
The name of the parameter being checked.
The original value of .
Reserved to be used by the compiler for tracking metadata.
This class should not be used by developers in source code.
Attribute used to indicate a source generator should create a function for marshalling
arguments instead of relying on the runtime to generate an equivalent marshalling function at run-time.
This attribute is meaningless if the source generator associated with it is not enabled.
The current built-in source generator only supports C# and only supplies an implementation when
applied to static, partial, non-generic methods.
Initializes a new instance of the .
Name of the library containing the import.
Gets the name of the library containing the import.
Gets or sets the name of the entry point to be called.
Gets or sets how to marshal string arguments to the method.
If this field is set to a value other than ,
must not be specified.
Gets or sets the used to control how string arguments to the method are marshalled.
If this field is specified, must not be specified
or must be set to .
Gets or sets whether the callee sets an error (SetLastError on Windows or errno
on other platforms) before returning from the attributed method.
Specifies how strings should be marshalled for generated p/invokes
Indicates the user is suppling a specific marshaller in .
Use the platform-provided UTF-8 marshaller.
Use the platform-provided UTF-16 marshaller.
Specifies that null is allowed as an input even if the corresponding type disallows it.
Specifies that null is disallowed as an input even if the corresponding type allows it.
Specifies that an output may be null even if the corresponding type disallows it.
Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns.
Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter may be null.
Gets the return value condition.
Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter will not be null.
Gets the return value condition.
Specifies that the output will be non-null if the named parameter is non-null.
Initializes the attribute with the associated parameter name.
The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.
Gets the associated parameter name.
Applied to a method that will never return under any circumstance.
Specifies that the method will not return if the associated Boolean parameter is passed the specified value.
Initializes the attribute with the specified parameter value.
The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to
the associated parameter matches this value.
Gets the condition parameter value.
Specifies that the method or property will ensure that the listed field and property members have not-null values.
Initializes the attribute with a field or property member.
The field or property member that is promised to be not-null.
Initializes the attribute with the list of field and property members.
The list of field and property members that are promised to be not-null.
Gets field or property member names.
Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition.
Initializes the attribute with the specified return value condition and a field or property member.
The return value condition. If the method returns this value, the associated parameter will not be null.
The field or property member that is promised to be not-null.
Initializes the attribute with the specified return value condition and list of field and property members.
The return value condition. If the method returns this value, the associated parameter will not be null.
The list of field and property members that are promised to be not-null.
Gets the return value condition.
Gets field or property member names.