MBrace.Core


PersistedValue

Namespace: MBrace.Library

PersistedValue extension methods

Static members

Static memberDescription
New(value, path, serializer, compress)
Signature: (value:'T * path:string option * serializer:ISerializer option * compress:bool option) -> LocalCloud<PersistedValue<'T>>
Type parameters: 'T

Creates a new PersistedValue by persisting input as a cloud file in the underlying store.

OfCloudFile(...)
Signature: (path:string * textDeserializer:(StreamReader -> 'T) * encoding:Encoding option * ensureFileExists:bool option * forceEvaluation:bool option * resolveEtag:bool option) -> LocalCloud<PersistedValue<'T>>
Type parameters: 'T

Defines a PersistedValue from provided cloud file path with user-provided text deserializer and encoding. This is a lazy operation unless the optional 'forceEvaluation' parameter is enabled.

OfCloudFile(...)
Signature: (path:string * serializer:ISerializer * ensureFileExists:bool option * forceEvaluation:bool option * resolveEtag:bool option) -> LocalCloud<PersistedValue<'T>>
Type parameters: 'T

Defines a PersistedValue from provided cloud file path with user-provided serializer implementation. This is a lazy operation unless the optional 'forceEvaluation' parameter is enabled.

OfCloudFile(...)
Signature: (path:string * deserializer:(Stream -> 'T) option * ensureFileExists:bool option * forceEvaluation:bool option * resolveEtag:bool option) -> LocalCloud<PersistedValue<'T>>
Type parameters: 'T

Defines a PersistedValue from provided cloud file path with user-provided deserialization function. This is a lazy operation unless the optional 'forceEvaluation' parameter is enabled.

Fork me on GitHub