SerializerExtensions class¶
Defined in
Namespace: ReactiveMarbles.CacheDatabase.Core
Assembly: ReactiveMarbles.CacheDatabase.Core.dll
Full name: ReactiveMarbles.CacheDatabase.Core.SerializerExtensions
Modifiers: public static
Summary¶
Extension methods associated with the serializer.
Applies to
netstandard2.0
Methods¶
| Name | Summary |
|---|---|
| static InsertObjects | Inserts the specified key/value pairs into the blob. |
| static GetObjects | Gets a value pair filled with the specified keys with their corresponding values. |
| static InsertObject | Insert an object into the cache, via the JSON serializer. |
| static GetObject | Get an object from the cache and deserialize it via the JSON serializer. |
| static GetAllObjects | Return all objects of a specific Type in the cache. |
| static GetObjectCreatedAt | Returns 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 InvalidateObject | 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... |
| static InvalidateAllObjects | Invalidates all objects of the specified type. To invalidate all objects regardless of type, use InvalidateAll. |
| static InsertAllObjects | Insert several objects into the cache, via the JSON serializer. Similarly to InsertAll, partial inserts should not happen. |
| static GetOrFetchObject | 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. |
| static GetOrCreateObject | 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. |
| static GetAndFetchLatest | 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. |