Skip to main content

Configure

Default Config

There is a default configuration included in the install package and Docker image.

Default settings:

  • Listen on 127.0.0.1:1987
  • Assigned to core 0
  • Sessions disabled
  • Persistance disabled

default.jsonc
{
"version":6,
"core":0,
"ip":"127.0.0.1",
"port":1987,
"maxPayload":8192,
"persist":
{
"enabled":false,
"path":"./data"
},
"arrays":
{
"maxCapacity":10000,
"maxResponseSize":10000
},
"lists":
{
"maxResponseSize":10000
}
}



ParamTypeDescriptionRequired
versionunsigned intMust be 5Y
coreunsigned intThe core to assign this instance.
If not present or above maximum available, defaults to 0
N
maxPayloadunsigned intThe max size, in bytes, of the WebSocket payloadY
persistobjectSettings for saving/loading keysY
arraysobjectSettings for arraysY
listsobjectSettings for listsY

core

This is the logical core, which may differ from physical cores when hyperthreading is present.

note
  • When running multiple instances, remember to change the port
  • If running in a Docker container, the core(s) available depends on those available for the container.

persist

ParamTypeDescription
enabledbooltrue:
- KV_SAVE available
- path must exist

false:
-KV_SAVE not available
- path is not checked
pathstringPath to the directory where data is stored. Must be a directory.
If enabled is true, this path must exist.

See KV_SAVE for more.


arrays

ParamTypeDescription
maxCapacityunsigned intArrays are fixed size so this is the max number of elements in the array, not max number of bytes.
maxResponseSizeunsigned intMaximum number of items permitted in a response that returns multiple items, such as get_range().
If this is less than maxCapacity it is possible that not all items will be returned

lists

ParamTypeDescription
maxResponseSizeunsigned intMaximum number of items permitted in a response that returns multiple items