Skip to content

InMemoryDatabase

ratranqu edited this page Apr 26, 2021 · 2 revisions

InMemoryDatabase

public final class InMemoryDatabase: Database 

Inheritance

Database

Initializers

init()

public init() 

Methods

get(key:)

public func get(key: Data) throws -> Data? 

has(key:)

public func has(key: Data) throws -> Bool 

set(key:value:)

public func set(key: Data, value: Data) throws 

setSync(key:value:)

public func setSync(key: Data, value: Data) throws 

delete(key:)

public func delete(key: Data) throws 

deleteSync(key:)

public func deleteSync(key: Data) throws 

close()

public func close() throws 

print()

public func print() throws 

stats()

public func stats() -> [String : String] 

makeBatch()

public func makeBatch() -> Batch 

iterator(start:end:)

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

reverseIterator(start:end:)

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