Skip to content

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

SqliteBlobCache.Insert(IEnumerable>, DateTimeOffset?) method

Defined in

Type: SqliteBlobCache Namespace: ReactiveMarbles.CacheDatabase.Sqlite3 Assembly: ReactiveMarbles.CacheDatabase.Sqlite3.dll

Applies to

netstandard2.0

Overloads

  • 1. public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, DateTimeOffset? absoluteExpiration = null)
  • 2. public IObservable<Unit> Insert(string key, byte[] data, DateTimeOffset? absoluteExpiration = null)
  • 3. public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, Type type, DateTimeOffset? absoluteExpiration = null)
  • 4. public IObservable<Unit> Insert(string key, byte[] data, Type type, DateTimeOffset? absoluteExpiration = null)

1. Overload

public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, DateTimeOffset? absoluteExpiration = null)

View source

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

NameTypeDescription
keyValuePairsIEnumerable>The key/value to insert.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- A observable which signals when complete.

2. Overload

public IObservable<Unit> Insert(string key, byte[] data, DateTimeOffset? absoluteExpiration = null)

View source

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

NameTypeDescription
keystringThe key to use for the data.
databyte[]The data to save in the cache.
absoluteExpiration = nullDateTimeOffset?An optional expiration date. After the specified date, the key-value pair should be removed.

Returns: IObservable -- A signal to indicate when the key has been inserted.

3. Overload

public IObservable<Unit> Insert(IEnumerable<KeyValuePair<string, byte[]>> keyValuePairs, Type type, DateTimeOffset? absoluteExpiration = null)

View source

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

NameTypeDescription
keyValuePairsIEnumerable>The key/value to insert.
typeTypeThe type.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- A observable which signals when complete.

4. Overload

public IObservable<Unit> Insert(string key, byte[] data, Type type, DateTimeOffset? absoluteExpiration = null)

View source

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

NameTypeDescription
keystringThe key to use for the data.
databyte[]The data to save in the cache.
typeTypeThe type.
absoluteExpiration = nullDateTimeOffset?An optional expiration date. After the specified date, the key-value pair should be removed.

Returns: IObservable -- A signal to indicate when the key has been inserted.