4 releases

0.1.3 Feb 27, 2024
0.1.2 Jan 7, 2024
0.1.1 Nov 26, 2020
0.1.0 Nov 26, 2020

#1861 in Database interfaces

Download history 36/week @ 2024-02-19 218/week @ 2024-02-26 8/week @ 2024-03-04 31/week @ 2024-03-11 19/week @ 2024-03-18 11/week @ 2024-03-25 29/week @ 2024-04-01 3/week @ 2024-04-08 46/week @ 2024-04-15 29/week @ 2024-04-29 15/week @ 2024-05-06 3/week @ 2024-05-13 28/week @ 2024-05-20

75 downloads per month
Used in 2 crates

MIT license

120KB
3K SLoC

Kvsd

Kvsd is an asynchronous key value store with tokio runtime. The key value is saved by appending it to a file and keeps the offset in memory.

blog post

Quick Start

terminal1

# running server (default port: 7379)
$ kvsd server --disable-tls

terminal2

# running client
$ kvsd set key1 value1 --disable-tls
OK

$ kvsd get key1 --disable-tls
value1

$ kvsd delete key1 --disable-tls
OK old value: value1

Configurations

The order of configuration priority is as follows.(high to low)

  • command line flag
  • environment variables
  • configuration file
  • default value

kvsd

server

Key Description Default
max_tcp_connections Number of clients that can be connected simultaneously 10240
connection_tcp_buffer_bytes Buffer to be allocated per client 4096
authenticate_timeout_milliseconds Time to wait for authentication from client when tcp connection is established 300

Logging

To specify logging directive, use KVSD_LOG environment variable.

$ KVSD_LOG=info kvsd

Dependencies

~12–24MB
~332K SLoC