PersistedValueManager
Namespace: MBrace.Runtime.Components
Provides utility methods for persisting .NET objects to files in the cloud store. Can be safely serialized.
Instance members
Instance member | Description |
CreatePickleOrFileAsync(...)
Signature: (value:'T * fileName:string * persistThreshold:int64 option) -> Async<PickleOrFile<'T>>
Type parameters: 'T |
Creates an entity that is either persisted as file or encapsulated in entity, depending on provided size threshold. |
PeristSequenceAsync(...)
Signature: (values:seq<'T> * fileName:string * serializer:ISerializer option) -> Async<PersistedSequence<'T>>
Type parameters: 'T |
Asynchronously persists provided sequence to file of given name. |
PersistValueAsync(value, fileName)
Signature: (value:'T * fileName:string) -> Async<PersistedValue<'T>>
Type parameters: 'T |
Asynchronously persists provided value to file of given name. |
ReadPickleOrFileAsync(pof)
Signature: pof:PickleOrFile<'T> -> Async<'T>
Type parameters: 'T |
Asynchronously reads the contents of provided PickleOrFile. |
TryGetPersistedSequenceByFileName(...)
Signature: fileName:string -> Async<PersistedSequence<'T> option>
Type parameters: 'T |
Asynchronously attempt to get a persisted sequence by given type and fileName. |
TryGetPersistedValueByFileName(fileName)
Signature: fileName:string -> Async<PersistedValue<'T> option>
Type parameters: 'T |
Asynchronously attempt to get a persisted value by given type and fileName. |
Static members
Static member | Description |
Create(...)
Signature: (fileStore:ICloudFileStore * serializer:ISerializer * persistThreshold:int64) -> PersistedValueManager
|
Creates a new persisted value manager with supplied configuration. |