)} )} ,System.Nullable{System.DateTimeOffset})} ,System.Type,System.Nullable{System.DateTimeOffset})}
InMemoryBlobCacheBase.UpdateExpiration(string, DateTimeOffset?) method¶
Defined in
Type: InMemoryBlobCacheBase
Namespace: Akavache
Assembly: Akavache.dll
Applies to
net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-windows10.0.19041, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-macos15.0, net9.0-ios18.0, net9.0-android35.0, net8.0, net8.0-macos14.5, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-ios17.5, net8.0-tvos18.0, net8.0-macos15.0, net8.0-ios18.0, net8.0-windows10.0.19041, net8.0-maccatalyst18.0, net8.0-tvos17.2, netstandard2.1, net481, net462
Overloads¶
- 1.
public IObservable<Unit> UpdateExpiration(string key, DateTimeOffset? absoluteExpiration) - 2.
public IObservable<Unit> UpdateExpiration(string key, Type type, DateTimeOffset? absoluteExpiration) - 3.
public IObservable<Unit> UpdateExpiration(IEnumerable<string> keys, DateTimeOffset? absoluteExpiration) - 4.
public IObservable<Unit> UpdateExpiration(IEnumerable<string> keys, Type type, DateTimeOffset? absoluteExpiration)
1. Overload¶
public IObservable<Unit> UpdateExpiration(string key, DateTimeOffset? absoluteExpiration)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Updates the expiration date for an existing cache entry without reading or writing the cached data. This is useful when a server returns a NotModified response and you want to extend the cache expiration.
Parameters
| Name | Type | Description |
|---|---|---|
key | string | The key of the cache entry to update. |
absoluteExpiration | DateTimeOffset? | The new expiration date. Pass null for no expiration. |
Returns: IObservable
2. Overload¶
public IObservable<Unit> UpdateExpiration(string key, Type type, DateTimeOffset? absoluteExpiration)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Updates the expiration date for an existing cache entry without reading or writing the cached data. This is useful when a server returns a NotModified response and you want to extend the cache expiration.
Parameters
| Name | Type | Description |
|---|---|---|
key | string | The key of the cache entry to update. |
type | Type | The type of the cached object. |
absoluteExpiration | DateTimeOffset? | The new expiration date. Pass null for no expiration. |
Returns: IObservable
3. Overload¶
public IObservable<Unit> UpdateExpiration(IEnumerable<string> keys, DateTimeOffset? absoluteExpiration)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Updates the expiration date for multiple existing cache entries without reading or writing the cached data. This is useful when a server returns a NotModified response and you want to extend the cache expiration.
Parameters
| Name | Type | Description |
|---|---|---|
keys | IEnumerable | The keys of the cache entries to update. |
absoluteExpiration | DateTimeOffset? | The new expiration date. Pass null for no expiration. |
Returns: IObservable
4. Overload¶
public IObservable<Unit> UpdateExpiration(IEnumerable<string> keys, Type type, DateTimeOffset? absoluteExpiration)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Updates the expiration date for multiple existing cache entries without reading or writing the cached data. This is useful when a server returns a NotModified response and you want to extend the cache expiration.
Parameters
| Name | Type | Description |
|---|---|---|
keys | IEnumerable | The keys of the cache entries to update. |
type | Type | The type of the cached objects. |
absoluteExpiration | DateTimeOffset? | The new expiration date. Pass null for no expiration. |
Returns: IObservable