Skip to content

EncryptedSqliteBlobCache class

Defined in

Namespace: ReactiveMarbles.CacheDatabase.EncryptedSqlite3 Assembly: ReactiveMarbles.CacheDatabase.EncryptedSqlite3.dll Full name: ReactiveMarbles.CacheDatabase.EncryptedSqlite3.EncryptedSqliteBlobCache Modifiers: public

Summary

View source

        The Sqlite blob cache.
        

Applies to

netstandard2.0

Class hierarchy
classDiagram
class EncryptedSqliteBlobCache
class IBlobCache {
    <>
}
IBlobCache <|.. EncryptedSqliteBlobCache
class IDisposable {
    <>
}
IDisposable <|.. EncryptedSqliteBlobCache
class IAsyncDisposable {
    <>
}
IAsyncDisposable <|.. EncryptedSqliteBlobCache

Implements: IBlobCache, IDisposable, IAsyncDisposable

Constructors

NameSummary
.ctorInitializes a new instance of the [EncryptedSqliteBlobCache](# class.

Properties

NameSummary
ConnectionGets the connection.
SchedulerGets the IScheduler used to defer operations. By default, this is BlobCache.TaskpoolScheduler.

Methods

NameSummary
FlushThis method guarantees that all in-flight inserts have completed and any indexes have been written to disk.
GetRetrieve a value from the key-value cache. If the key is not in the cache, this method should return an IObservable which OnError's with KeyNotFoundException.
GetAllGets a observable of key value pairs with the specified keys with their corresponding values.
GetAllKeysReturn all keys in the cache. Note that this method is normally for diagnostic / testing purposes, and that it is not guaranteed to be accurate with respect to in-flight...
GetCreatedAtGets a observable of key value pairs with the specified keys with their corresponding created DateTimeOffset if it's available.
InsertInserts the specified key/value pairs into the blob.
InvalidateRemove a key from the cache. If the key doesn't exist, this method should do nothing and return (not throw KeyNotFoundException).
InvalidateAllInvalidates all entries for the specified type.
VacuumThis method eagerly removes all expired keys from the blob cache, as well as does any cleanup operations that makes sense (Hint: on SQLite3 it does a Vacuum).
Dispose
DisposeAsyncPerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
DisposeAsyncCoreDisposes of the async resources.
BeforeWriteToDiskFilterThis method is called immediately before writing any data to disk. Override this in encrypting data stores in order to encrypt the data.
Inherited members