PrefixStore - CosmosSwift/swift-coin GitHub Wiki
PrefixStore
public final class PrefixStore: KeyValueStore
Inheritance
KeyValueStore
Initializers
init(parent:prefix:)
public init(parent: KeyValueStore, prefix: Data)
Properties
storeType
var storeType: StoreType
cacheWrap
var cacheWrap: CacheWrap
Methods
get(key:)
public func get(key: Data) -> Data?
has(key:)
public func has(key: Data) -> Bool
set(key:value:)
public func set(key: Data, value: Data)
delete(key:)
public func delete(key: Data)
iterator(start:end:)
public func iterator(start: Data, end: Data) -> Iterator
reverseIterator(start:end:)
public func reverseIterator(start: Data, end: Data) -> Iterator
cacheWrapWithTrace(writer:traceContext:)
public func cacheWrapWithTrace(writer: Writer, traceContext: TraceContext) -> CacheWrap