Creates a database based on the input config.
Creates a database based on the input config.
Type of key
Type of value
Configuration to use to create the database
Number of concurrent opened Segments
Size of in-memory key-values. For Memory database this set the size of uncompressed key-values. If compression is used for memory database the this field can be ignored.
Sets the max interval at which key-values get dropped from the cache. The delays are dynamically adjusted based on the current size of the cache to stay close the set cacheSize. If compression is not used for memory database the this field can be ignored.
For persistent Levels only. This can property is not used for databases. Sets the max interval at which Segments get closed. The delays are dynamically adjusted based on the current number of open Segments.
Converts keys to Bytes
Converts values to Bytes
Sort order for keys
ExecutionContext
Database instance
Default execution context for all databases.
Default execution context for all databases.
This can be overridden by provided an implicit parameter in the scope of where the database is initialized.
Documentation: http://www.swaydb.io/api/repairAppendix
(Since version ) see corresponding Javadoc for more information.
Instance used for creating/initialising databases.