})} },System.Nullable{System.DateTimeOffset})} )} },System.Type)} },System.Type,System.Nullable{System.DateTimeOffset})} )}
InMemoryBlobCacheBase.Insert(IEnumerable>) method¶
Defined in
Type: InMemoryBlobCacheBase
Namespace: Akavache.Reactive
Assembly: Akavache.Reactive.dll
Applies to
net10.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-macos26.0, net10.0-ios26.0, net10.0-android36.0, net9.0, net9.0-tvos18.0, net9.0-macos15.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-ios18.0, net9.0-desktop1.0, net8.0, net8.0-windows10.0.19041, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.5, netstandard2.1, net481, net462, net471
Overloads¶
- 1.
public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs) - 2.
public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, DateTimeOffset? absoluteExpiration) - 3.
public IObservable<Unit> Insert(string key, byte[] data) - 4.
public IObservable<Unit> Insert(string key, byte[] data, DateTimeOffset? absoluteExpiration) - 5.
public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, Type type) - 6.
public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, Type type, DateTimeOffset? absoluteExpiration) - 7.
public IObservable<Unit> Insert(string key, byte[] data, Type type) - 8.
public IObservable<Unit> Insert(string key, byte[] data, Type type, DateTimeOffset? absoluteExpiration)
1. Overload¶
public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Inserts the specified key/value pairs into the blob.
Parameters
| Name | Type | Description |
|---|---|---|
keyValuePairs | IEnumerable | The key/value to insert. |
Returns: IObservable
2. Overload¶
public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, DateTimeOffset? absoluteExpiration)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Inserts the specified key/value pairs into the blob.
Parameters
| Name | Type | Description |
|---|---|---|
keyValuePairs | IEnumerable | The key/value to insert. |
absoluteExpiration | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
3. Overload¶
public IObservable<Unit> Insert(string key, byte[] data)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Insert a blob into the cache with the specified key and expiration date.
Parameters
| Name | Type | Description |
|---|---|---|
key | string | The key to use for the data. |
data | byte[] | The data to save in the cache. |
Returns: IObservable
4. Overload¶
public IObservable<Unit> Insert(string key, byte[] data, DateTimeOffset? absoluteExpiration)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Insert a blob into the cache with the specified key and expiration date.
Parameters
| Name | Type | Description |
|---|---|---|
key | string | The key to use for the data. |
data | byte[] | The data to save in the cache. |
absoluteExpiration | DateTimeOffset? | An optional expiration date. After the specified date, the key-value pair should be removed. |
Returns: IObservable
5. Overload¶
public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, Type type)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Inserts the specified key/value pairs into the blob.
Parameters
| Name | Type | Description |
|---|---|---|
keyValuePairs | IEnumerable | The key/value to insert. |
type | Type | The type. |
Returns: IObservable
6. Overload¶
public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, Type type, DateTimeOffset? absoluteExpiration)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Inserts the specified key/value pairs into the blob.
Parameters
| Name | Type | Description |
|---|---|---|
keyValuePairs | IEnumerable | The key/value to insert. |
type | Type | The type. |
absoluteExpiration | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
7. Overload¶
public IObservable<Unit> Insert(string key, byte[] data, Type type)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Insert a blob into the cache with the specified key and expiration date.
Parameters
| Name | Type | Description |
|---|---|---|
key | string | The key to use for the data. |
data | byte[] | The data to save in the cache. |
type | Type | The type. |
Returns: IObservable
8. Overload¶
public IObservable<Unit> Insert(string key, byte[] data, Type type, DateTimeOffset? absoluteExpiration)
Inherited documentation
These docs were inherited from IBlobCache. The member doesn't override them on this type.
Summary: Insert a blob into the cache with the specified key and expiration date.
Parameters
| Name | Type | Description |
|---|---|---|
key | string | The key to use for the data. |
data | byte[] | The data to save in the cache. |
type | Type | The type. |
absoluteExpiration | DateTimeOffset? | An optional expiration date. After the specified date, the key-value pair should be removed. |
Returns: IObservable