Interface IObjectBulkBlobCache
- Namespace
- Akavache
- Assembly
- Akavache.Core.dll
A BlobCache implementation that can handle bulk operations with objects.
public interface IObjectBulkBlobCache : IObjectBlobCache, IBulkBlobCache, IBlobCache, IDisposable
- Inherited Members
- Extension Methods
Methods
GetObjects<T>(IEnumerable<string>)
Get several objects from the cache and deserialize it via the JSON serializer.
IObservable<IDictionary<string, T>> GetObjects<T>(IEnumerable<string> keys)
Parameters
keys
IEnumerable<string>The key to look up in the cache.
Returns
- IObservable<IDictionary<string, T>>
A Future result representing the object in the cache.
Type Parameters
T
The type of object associated with the blob.
InsertObjects<T>(IDictionary<string, T>, DateTimeOffset?)
Insert several objects into the cache, via the JSON serializer. Similarly to InsertAll, partial inserts should not happen.
IObservable<Unit> InsertObjects<T>(IDictionary<string, T> keyValuePairs, DateTimeOffset? absoluteExpiration = null)
Parameters
keyValuePairs
IDictionary<string, T>The data to insert into the cache.
absoluteExpiration
DateTimeOffset?An optional expiration date.
Returns
- IObservable<Unit>
A Future result representing the completion of the insert.
Type Parameters
T
The type of object associated with the blob.
InvalidateObjects<T>(IEnumerable<string>)
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.
IObservable<Unit> InvalidateObjects<T>(IEnumerable<string> keys)
Parameters
keys
IEnumerable<string>The key to invalidate.
Returns
- IObservable<Unit>
A Future result representing the completion of the invalidation.
Type Parameters
T
The type of object associated with the blob.