Skip to content

)} )} ,System.Nullable{System.DateTimeOffset})} ,System.Type,System.Nullable{System.DateTimeOffset})}

EncryptedSqliteBlobCache.UpdateExpiration(string, DateTimeOffset?) method

Defined in

Type: EncryptedSqliteBlobCache Namespace: Akavache.EncryptedSqlite3 Assembly: Akavache.EncryptedSqlite3.dll

Applies to

net11.0, net11.0-ios27.2, net11.0-android37.0, net11.0-windows10.0.19041, net11.0-macos27.2, net11.0-maccatalyst27.2, net10.0, net10.0-macos26.0, net10.0-maccatalyst26.0, net10.0-android36.0, net10.0-ios26.0, net10.0-windows10.0.19041, net48, net47, net471, net472, net481

Overloads

  1. public IObservable<RxVoid> UpdateExpiration(string key, DateTimeOffset? absoluteExpiration)

  2. public IObservable<RxVoid> UpdateExpiration(string key, Type type, DateTimeOffset? absoluteExpiration)

  3. public IObservable<RxVoid> UpdateExpiration(IEnumerable<string> keys, DateTimeOffset? absoluteExpiration)

  4. public IObservable<RxVoid> UpdateExpiration(IEnumerable<string> keys, Type type, DateTimeOffset? absoluteExpiration)

1. Overload

public IObservable<RxVoid> UpdateExpiration(string key, DateTimeOffset? absoluteExpiration)

View source (opens in a new tab)

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

NameTypeDescription
keystring (opens in a new tab)The key of the cache entry to update.
absoluteExpirationDateTimeOffset? (opens in a new tab)The new expiration date. Pass null for no expiration.

Returns: IObservable (opens in a new tab) -- A signal indicating when the operation is complete.

2. Overload

public IObservable<RxVoid> UpdateExpiration(string key, Type type, DateTimeOffset? absoluteExpiration)

View source (opens in a new tab)

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

NameTypeDescription
keystring (opens in a new tab)The key of the cache entry to update.
typeType (opens in a new tab)The type of the cached object.
absoluteExpirationDateTimeOffset? (opens in a new tab)The new expiration date. Pass null for no expiration.

Returns: IObservable (opens in a new tab) -- A signal indicating when the operation is complete.

3. Overload

public IObservable<RxVoid> UpdateExpiration(IEnumerable<string> keys, DateTimeOffset? absoluteExpiration)

View source (opens in a new tab)

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

NameTypeDescription
keysIEnumerable (opens in a new tab)The keys of the cache entries to update.
absoluteExpirationDateTimeOffset? (opens in a new tab)The new expiration date. Pass null for no expiration.

Returns: IObservable (opens in a new tab) -- A signal indicating when the operation is complete.

4. Overload

public IObservable<RxVoid> UpdateExpiration(IEnumerable<string> keys, Type type, DateTimeOffset? absoluteExpiration)

View source (opens in a new tab)

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

NameTypeDescription
keysIEnumerable (opens in a new tab)The keys of the cache entries to update.
typeType (opens in a new tab)The type of the cached objects.
absoluteExpirationDateTimeOffset? (opens in a new tab)The new expiration date. Pass null for no expiration.

Returns: IObservable (opens in a new tab) -- A signal indicating when the operation is complete.