Skip to content

SerializerExtensions class

Defined in

Namespace: ReactiveMarbles.CacheDatabase.Core Assembly: ReactiveMarbles.CacheDatabase.Core.dll Full name: ReactiveMarbles.CacheDatabase.Core.SerializerExtensions Modifiers: public static

Summary

View source

        Extension methods associated with the serializer.
        

Applies to

netstandard2.0

Methods

NameSummary
static InsertObjectsInserts the specified key/value pairs into the blob.
static GetObjectsGets a value pair filled with the specified keys with their corresponding values.
static InsertObjectInsert an object into the cache, via the JSON serializer.
static GetObjectGet an object from the cache and deserialize it via the JSON serializer.
static GetAllObjectsReturn all objects of a specific Type in the cache.
static GetObjectCreatedAtReturns the time that the object with the key was added to the cache, or returns null if the key isn't in the cache.
static InvalidateObjectInvalidates 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...
static InvalidateAllObjectsInvalidates all objects of the specified type. To invalidate all objects regardless of type, use InvalidateAll.
static InsertAllObjectsInsert several objects into the cache, via the JSON serializer. Similarly to InsertAll, partial inserts should not happen.
static GetOrFetchObjectAttempt 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.
static GetOrCreateObjectAttempt 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.
static GetAndFetchLatestThis 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.
Inherited members