SimpleStore

interface SimpleStore : Closeable

Fast, reliable storage.

Functions

Link copied to clipboard
abstract fun clear(): ListenableFuture<Void>
Delete all keys in this direct namespace.
Link copied to clipboard
abstract fun close()
Fails all outstanding operations then releases the memory cache.
Link copied to clipboard
abstract fun contains(key: String): ListenableFuture<Boolean>
Determine if a key exists in storage.
Link copied to clipboard
@Beta
abstract fun deleteAllNow(): ListenableFuture<Void>
Recursively delete all keys in this scope and child scopes.
Link copied to clipboard
abstract fun get(key: String): ListenableFuture<Array<Byte>>
Retrieve a byte[] from disk.
Link copied to clipboard
abstract fun getString(key: String): ListenableFuture<String>
Retrieve a byte[]-backed String.
Link copied to clipboard
abstract fun put(key: String, @Nullable value: Array<Byte>): ListenableFuture<Array<Byte>>
Stores a byte[] on disk.
Link copied to clipboard
abstract fun putString(key: String, @Nullable value: String): ListenableFuture<String>
Stores a String as a byte[].
Link copied to clipboard
abstract fun remove(key: String): ListenableFuture<Void>
Removes a key from memory &disk.

Inheritors

Link copied to clipboard