Skip to content

KeyValueStore

ratranqu edited this page Apr 26, 2021 · 2 revisions

KeyValueStore

public protocol KeyValueStore: Store 

Inheritance

Store

Default Implementations

prefixIterator(prefix:)

public func prefixIterator(prefix: Data) -> Iterator 

reversePrefixIterator(prefix:)

public func reversePrefixIterator(prefix: Data) -> Iterator 

Requirements

get(key:​)

func get(key: Data) -> Data?

has(key:​)

func has(key: Data) -> Bool

set(key:​value:​)

func set(key: Data, value: Data)

delete(key:​)

func delete(key: Data)

iterator(start:​end:​)

func iterator(start: Data, end: Data) -> Iterator

reverseIterator(start:​end:​)

func reverseIterator(start: Data, end: Data) -> Iterator
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Extensions
Clone this wiki locally