Summary
A BlobCache implementation that can handle bulk operations with objects.
- Namespace
- Akavache
- Interfaces
-
- IObjectBlobCache
- IBulkBlobCache
- IBlobCache
- IDisposable
- Implementing Types
graph BT
Type-.->Interface0["IObjectBlobCache"]
click Interface0 "/api/Akavache/IObjectBlobCache"
Type-.->Interface1["IBulkBlobCache"]
click Interface1 "/api/Akavache/IBulkBlobCache"
Type-.->Interface2["IBlobCache"]
click Interface2 "/api/Akavache/IBlobCache"
Type-.->Interface3["IDisposable"]
Type["IObjectBulkBlobCache"]
class Type type-node
Implementing0["SqlRawPersistentBlobCache"]-.->Type
click Implementing0 "/api/Akavache.Sqlite3/SqlRawPersistentBlobCache"
Implementing1["SQLitePersistentBlobCache"]-.->Type
click Implementing1 "/api/Akavache.Sqlite3/SQLitePersistentBlobCache"
Implementing2["SQLiteEncryptedBlobCache"]-.->Type
click Implementing2 "/api/Akavache.Sqlite3/SQLiteEncryptedBlobCache"
Implementing3["EncryptedBlobCache"]-.->Type
click Implementing3 "/api/Akavache.Sqlite3/EncryptedBlobCache"
Syntax
public interface IObjectBulkBlobCache : IObjectBlobCache, IBulkBlobCache, IBlobCache, IDisposable
Methods
Name | Value | Summary |
---|---|---|
GetObjects |
IObservable |
Get several objects from the cache and deserialize it via the JSON
serializer.
|
InsertObjects |
IObservable |
Insert several objects into the cache, via the JSON serializer.
Similarly to InsertAll, partial inserts should not happen.
|
InvalidateObjects |
IObservable |
Invalidates several objects from the cache. It is important that the Type
Parameter for this method be correct, and you cannot use
IBlobCache.Invalidate to perform the same task.
|
Extension Methods
Name | Value | Summary |
---|---|---|
BindCommand |
IReactiveBinding |
Bind a command from the ViewModel to an explicitly specified control
on the View.
From CommandBinder
|
BindCommand |
IReactiveBinding |
Bind a command from the ViewModel to an explicitly specified control
on the View.
From CommandBinder
|
BindCommand |
IReactiveBinding |
Bind a command from the ViewModel to an explicitly specified control
on the View.
From CommandBinder
|
BindValidation |
IDisposable |
Binds the specified ViewModel property validation to the View property.
From ViewForExtensions
|
BindValidation |
IDisposable |
Platform binding to the TextInputLayout.
From ViewForExtensions
|
BindValidation |
IDisposable |
Platform binding to the TextInputLayout.
From ViewForExtensions
|
BindValidation |
IDisposable |
Binds the overall validation of a ViewModel to a specified View property.
From ViewForExtensions
|
BindValidation |
IDisposable |
Binds a
ValidationHelper from a ViewModel to a specified View property.
From ViewForExtensions
|
BindValidation |
IDisposable |
Platform binding to the TextInputLayout.
From ViewForExtensions
|
BindValidation |
IDisposable |
Platform binding to the TextInputLayout.
From ViewForExtensions
|
BindValidationEx |
IDisposable |
Platform binding to the TextInputLayout.
From ViewForExtensions
|
BindValidationEx |
IDisposable |
Platform binding to the TextInputLayout.
From ViewForExtensions
|
DisposeWith |
T |
Ensures the provided disposable is disposed with the specified
CompositeDisposable .
From DisposableMixins
|
DownloadUrl |
IObservable |
Download data from an HTTP URL and insert the result into the
cache. If the data is already in the cache, this returns
a cached value. The URL itself is used as the key.
From HttpMixinExtensions
|
DownloadUrl |
IObservable |
Download data from an HTTP URL and insert the result into the
cache. If the data is already in the cache, this returns
a cached value. An explicit key is provided rather than the URL itself.
From HttpMixinExtensions
|
DownloadUrl |
IObservable |
Downloads the specified url if there is not already a entry in the cache.
From RelativeTimeMixin
|
DownloadUrl |
IObservable |
Download data from an HTTP URL and insert the result into the
cache. If the data is already in the cache, this returns
a cached value. An explicit key is provided rather than the URL itself.
From HttpMixinExtensions
|
DownloadUrl |
IObservable |
Download data from an HTTP URL and insert the result into the
cache. If the data is already in the cache, this returns
a cached value. The URL itself is used as the key.
From HttpMixinExtensions
|
DownloadUrl |
IObservable |
Downloads the specified url if there is not already a entry in the cache.
From RelativeTimeMixin
|
Get |
IObservable |
Gets a dictionary filled with the specified keys with their corresponding values.
From BulkOperationsMixin
|
GetAllObjects |
IObservable |
Return all objects of a specific Type in the cache.
|
GetAndFetchLatest |
IObservable |
This method attempts to returned a cached value, while
simultaneously calling a Func to return the latest value. When the
latest data comes back, it replaces what was previously in the
cache.
This method is best suited for loading dynamic data from the
Internet, while still showing the user earlier data.
This method returns an IObservable that may return *two* results
(first the cached data, then the latest data). Therefore, it's
important for UI applications that in your Subscribe method, you
write the code to merge the second result when it comes in.
This also means that await'ing this method is a Bad Idea(tm), always
use Subscribe.
|
GetAndFetchLatest |
IObservable |
This method attempts to returned a cached value, while
simultaneously calling a Func to return the latest value. When the
latest data comes back, it replaces what was previously in the
cache.
This method is best suited for loading dynamic data from the
Internet, while still showing the user earlier data.
This method returns an IObservable that may return *two* results
(first the cached data, then the latest data). Therefore, it's
important for UI applications that in your Subscribe method, you
write the code to merge the second result when it comes in.
This also means that awaiting this method is a Bad Idea(tm), always
use Subscribe.
|
GetCreatedAt |
IObservable |
Gets a dictionary filled with the specified keys with their corresponding created
DateTimeOffset
if it's available.
From BulkOperationsMixin
|
GetObject |
IObservable |
Get an object from the cache and deserialize it via the JSON
serializer.
|
GetObjectCreatedAt |
IObservable |
Returns the time that the key was added to the cache, or returns
null if the key isn't in the cache.
|
GetObjects |
IObservable |
Gets a dictionary filled with the specified keys with their corresponding values.
From BulkOperationsMixin
|
GetOrCreateObject |
IObservable |
Attempt to return an object from the cache. If the item doesn't
exist or returns an error, call a Func to create a new one.
For most Internet applications, this method is the best method to
call to fetch static data (i.e. images) from the network.
|
GetOrFetchObject |
IObservable |
Attempt to return an object from the cache. If the item doesn't
exist or returns an error, call a Func to return the latest
version of an object and insert the result in the cache.
For most Internet applications, this method is the best method to
call to fetch static data (i.e. images) from the network.
|
GetOrFetchObject |
IObservable |
Attempt to return an object from the cache. If the item doesn't
exist or returns an error, call a Func to return the latest
version of an object and insert the result in the cache.
For most Internet applications, this method is the best method to
call to fetch static data (i.e. images) from the network.
|
Insert |
IObservable |
Inserts the specified key/value pairs into the blob.
From BulkOperationsMixin
|
Insert |
IObservable |
Inserts a item into the cache.
From RelativeTimeMixin
|
InsertAllObjects |
IObservable |
Insert several objects into the cache, via the JSON serializer.
Similarly to InsertAll, partial inserts should not happen.
|
InsertObject |
IObservable |
Insert an object into the cache, via the JSON serializer.
|
InsertObject |
IObservable |
Inserts a item into the cache.
From RelativeTimeMixin
|
InsertObjects |
IObservable |
Inserts the specified key/value pairs into the blob.
From BulkOperationsMixin
|
Invalidate |
IObservable |
Invalidates all the entries at the specified keys, causing them in future to have to be re-fetched.
From BulkOperationsMixin
|
InvalidateAllObjects |
IObservable |
Invalidates all objects of the specified type. To invalidate all
objects regardless of type, use InvalidateAll.
|
InvalidateObject |
IObservable |
Invalidates a single object from the cache. It is important that the Type
Parameter for this method be correct, and you cannot use
IBlobCache.Invalidate to perform the same task.
|
InvalidateObjects |
IObservable |
Invalidates all the entries at the specified keys, causing them in future to have to be re-fetched.
From BulkOperationsMixin
|
Invoke |
object |
This is a thing I lifted from Prism.
|
LoadImage |
IObservable |
Load an image from the blob cache.
From BitmapImageMixin
|
LoadImageFromUrl |
IObservable |
A combination of DownloadUrl and LoadImage, this method fetches an
image from a remote URL (using the cached value if possible) and
returns the image.
From BitmapImageMixin
|
LoadImageFromUrl |
IObservable |
A combination of DownloadUrl and LoadImage, this method fetches an
image from a remote URL (using the cached value if possible) and
returns the image.
From BitmapImageMixin
|
LoadImageFromUrl |
IObservable |
A combination of DownloadUrl and LoadImage, this method fetches an
image from a remote URL (using the cached value if possible) and
returns the image.
From BitmapImageMixin
|
LoadImageFromUrl |
IObservable |
A combination of DownloadUrl and LoadImage, this method fetches an
image from a remote URL (using the cached value if possible) and
returns the image.
From BitmapImageMixin
|
WhenAny |