KVBacked
public class KVBacked<T> where T : ToFromData
A generic class for using store-backed default-namespace typed values, cached locally for speed (so note this means that each instance assumes there is no other cache to keep it’s value coherent with).
-
Create a
KVBackedDeclaration
Swift
public init(kvstore: KVStorageProtocol, key: CustomStringConvertible, initial: T? = nil) -
get and set the backed, cached value
Declaration
Swift
public var value: T? { get set }
View on GitHub
Install in Dash
KVBacked Class Reference