EncryptedSqliteBlobCache class¶
Defined in
Namespace: ReactiveMarbles.CacheDatabase.EncryptedSqlite3
Assembly: ReactiveMarbles.CacheDatabase.EncryptedSqlite3.dll
Full name: ReactiveMarbles.CacheDatabase.EncryptedSqlite3.EncryptedSqliteBlobCache
Modifiers: public
Summary¶
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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [EncryptedSqliteBlobCache](# class. |
Properties¶
| Name | Summary |
|---|---|
| Connection | Gets the connection. |
| Scheduler | Gets the IScheduler used to defer operations. By default, this is BlobCache.TaskpoolScheduler. |
Methods¶
| Name | Summary |
|---|---|
| Flush | This method guarantees that all in-flight inserts have completed and any indexes have been written to disk. |
| Get | Retrieve 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. |
| GetAll | Gets a observable of key value pairs with the specified keys with their corresponding values. |
| GetAllKeys | Return 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... |
| GetCreatedAt | Gets a observable of key value pairs with the specified keys with their corresponding created DateTimeOffset if it's available. |
| Insert | Inserts the specified key/value pairs into the blob. |
| Invalidate | Remove a key from the cache. If the key doesn't exist, this method should do nothing and return (not throw KeyNotFoundException). |
| InvalidateAll | Invalidates all entries for the specified type. |
| Vacuum | This 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 | |
| DisposeAsync | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
| DisposeAsyncCore | Disposes of the async resources. |
| BeforeWriteToDiskFilter | This method is called immediately before writing any data to disk. Override this in encrypting data stores in order to encrypt the data. |