kv
Module Contents
alltypes
Module Contents
class
InfinispanKeyValueStore
:
KeyValueStore
Module Contents
InfinispanKeyValueStore
(
cache
:
Cache
<
Bytes
,
Bytes
>
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
cache
:
Cache
<
Bytes
,
Bytes
>
)
:
InfinispanKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
Unit
interface
KeyValueStore
:
Closeable
Module Contents
abstract
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
open
fun
getAsync
(
key
:
Bytes
)
:
AsyncResult
<
Bytes
?
>
open
fun
getAsync
(
dispatcher
:
CoroutineDispatcher
,
key
:
Bytes
)
:
AsyncResult
<
Bytes
?
>
abstract
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
Unit
open
fun
putAsync
(
key
:
Bytes
,
value
:
Bytes
)
:
AsyncCompletion
open
fun
putAsync
(
dispatcher
:
CoroutineDispatcher
,
key
:
Bytes
,
value
:
Bytes
)
:
AsyncCompletion
class
LevelDBKeyValueStore
:
KeyValueStore
Module Contents
LevelDBKeyValueStore
(
dbPath
:
Path
,
options
:
Options
=
Options().createIfMissing(true).cacheSize((100 * 1048576).toLong())
,
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
dbPath
:
Path
)
:
LevelDBKeyValueStore
@JvmStatic
fun
open
(
dbPath
:
Path
,
options
:
Options
)
:
LevelDBKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
<ERROR CLASS>
class
MapDBKeyValueStore
:
KeyValueStore
Module Contents
MapDBKeyValueStore
(
dbPath
:
Path
,
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
dbPath
:
Path
)
:
MapDBKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
<ERROR CLASS>
class
MapKeyValueStore
:
KeyValueStore
Module Contents
MapKeyValueStore
(
map
:
MutableMap
<
Bytes
,
Bytes
>
=
HashMap()
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
)
:
MapKeyValueStore
@JvmStatic
fun
open
(
map
:
MutableMap
<
Bytes
,
Bytes
>
)
:
MapKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
Unit
class
RedisKeyValueStore
:
KeyValueStore
Module Contents
RedisKeyValueStore
(
port
:
Int
=
6379
,
address
:
InetAddress
=
InetAddress.getLoopbackAddress()
)
RedisKeyValueStore
(
uri
:
String
)
fun
close
(
)
:
Unit
@JvmStatic
fun
codec
(
)
:
RedisCodec
<
Bytes
,
Bytes
>
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
uri
:
String
)
:
RedisKeyValueStore
@JvmStatic
fun
open
(
port
:
Int
)
:
RedisKeyValueStore
@JvmStatic
fun
open
(
address
:
InetAddress
)
:
RedisKeyValueStore
@JvmStatic
fun
open
(
port
:
Int
,
address
:
InetAddress
)
:
RedisKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
Unit
class
RocksDBKeyValueStore
:
KeyValueStore
Module Contents
RocksDBKeyValueStore
(
dbPath
:
Path
,
options
:
Options
=
Options().setCreateIfMissing(true).setWriteBufferSize(268435456).setMaxOpenFiles(-1)
,
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
dbPath
:
Path
)
:
RocksDBKeyValueStore
@JvmStatic
fun
open
(
dbPath
:
Path
,
options
:
Options
)
:
RocksDBKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
<ERROR CLASS>
class
SQLKeyValueStore
:
KeyValueStore
Module Contents
SQLKeyValueStore
(
jdbcurl
:
String
,
tableName
:
String
=
"store"
,
keyColumn
:
String
=
"key"
,
valueColumn
:
String
=
"value"
,
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
val
keyColumn
:
String
@JvmStatic
fun
open
(
jdbcUrl
:
String
)
:
SQLKeyValueStore
@JvmStatic
fun
open
(
jdbcUrl
:
String
,
tableName
:
String
,
keyColumn
:
String
,
valueColumn
:
String
)
:
SQLKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
<ERROR CLASS>
val
tableName
:
String
val
valueColumn
:
String
package
org.apache.tuweni.kv
Module Contents
class
InfinispanKeyValueStore
:
KeyValueStore
Module Contents
InfinispanKeyValueStore
(
cache
:
Cache
<
Bytes
,
Bytes
>
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
cache
:
Cache
<
Bytes
,
Bytes
>
)
:
InfinispanKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
Unit
interface
KeyValueStore
:
Closeable
Module Contents
abstract
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
open
fun
getAsync
(
key
:
Bytes
)
:
AsyncResult
<
Bytes
?
>
open
fun
getAsync
(
dispatcher
:
CoroutineDispatcher
,
key
:
Bytes
)
:
AsyncResult
<
Bytes
?
>
abstract
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
Unit
open
fun
putAsync
(
key
:
Bytes
,
value
:
Bytes
)
:
AsyncCompletion
open
fun
putAsync
(
dispatcher
:
CoroutineDispatcher
,
key
:
Bytes
,
value
:
Bytes
)
:
AsyncCompletion
class
LevelDBKeyValueStore
:
KeyValueStore
Module Contents
LevelDBKeyValueStore
(
dbPath
:
Path
,
options
:
Options
=
Options().createIfMissing(true).cacheSize((100 * 1048576).toLong())
,
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
dbPath
:
Path
)
:
LevelDBKeyValueStore
@JvmStatic
fun
open
(
dbPath
:
Path
,
options
:
Options
)
:
LevelDBKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
<ERROR CLASS>
class
MapDBKeyValueStore
:
KeyValueStore
Module Contents
MapDBKeyValueStore
(
dbPath
:
Path
,
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
dbPath
:
Path
)
:
MapDBKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
<ERROR CLASS>
class
MapKeyValueStore
:
KeyValueStore
Module Contents
MapKeyValueStore
(
map
:
MutableMap
<
Bytes
,
Bytes
>
=
HashMap()
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
)
:
MapKeyValueStore
@JvmStatic
fun
open
(
map
:
MutableMap
<
Bytes
,
Bytes
>
)
:
MapKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
Unit
class
RedisKeyValueStore
:
KeyValueStore
Module Contents
RedisKeyValueStore
(
port
:
Int
=
6379
,
address
:
InetAddress
=
InetAddress.getLoopbackAddress()
)
RedisKeyValueStore
(
uri
:
String
)
fun
close
(
)
:
Unit
@JvmStatic
fun
codec
(
)
:
RedisCodec
<
Bytes
,
Bytes
>
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
uri
:
String
)
:
RedisKeyValueStore
@JvmStatic
fun
open
(
port
:
Int
)
:
RedisKeyValueStore
@JvmStatic
fun
open
(
address
:
InetAddress
)
:
RedisKeyValueStore
@JvmStatic
fun
open
(
port
:
Int
,
address
:
InetAddress
)
:
RedisKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
Unit
class
RocksDBKeyValueStore
:
KeyValueStore
Module Contents
RocksDBKeyValueStore
(
dbPath
:
Path
,
options
:
Options
=
Options().setCreateIfMissing(true).setWriteBufferSize(268435456).setMaxOpenFiles(-1)
,
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
@JvmStatic
fun
open
(
dbPath
:
Path
)
:
RocksDBKeyValueStore
@JvmStatic
fun
open
(
dbPath
:
Path
,
options
:
Options
)
:
RocksDBKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
<ERROR CLASS>
class
SQLKeyValueStore
:
KeyValueStore
Module Contents
SQLKeyValueStore
(
jdbcurl
:
String
,
tableName
:
String
=
"store"
,
keyColumn
:
String
=
"key"
,
valueColumn
:
String
=
"value"
,
dispatcher
:
CoroutineDispatcher
=
Dispatchers.IO
)
fun
close
(
)
:
Unit
suspend
fun
get
(
key
:
Bytes
)
:
Bytes
?
val
keyColumn
:
String
@JvmStatic
fun
open
(
jdbcUrl
:
String
)
:
SQLKeyValueStore
@JvmStatic
fun
open
(
jdbcUrl
:
String
,
tableName
:
String
,
keyColumn
:
String
,
valueColumn
:
String
)
:
SQLKeyValueStore
suspend
fun
put
(
key
:
Bytes
,
value
:
Bytes
)
:
<ERROR CLASS>
val
tableName
:
String
val
valueColumn
:
String