#redis #json #simd #blazingly #serialization #napi #set

redis-simd-json

Blazingly fast Redis GET/SET behaviors utilizing SIMD JSON serialization

5 stable releases

1.2.1 Feb 28, 2023
1.2.0 Oct 10, 2022
1.1.1 Oct 8, 2022
1.0.0 Oct 8, 2022

#2297 in Database interfaces

Download history 16/week @ 2024-02-21 103/week @ 2024-02-28

119 downloads per month

MIT license

86KB
126 lines

Redis SIMD JSON

License npm version Cargo Documentation

Blazingly fast N-API bindings for native Redis client GET/SET/MGET/MSET commands utilizing SIMD JSON serialization with connection multiplexing via redis-swapplex.

Additionally, this library adds support for compare and swap if redis-cas is installed on the connected Redis server.

The native Redis client can be configured using ENV variables (see env-url for usage):

REDIS_URL=redis://127.0.0.1:6379
# Override env mapping for easy kubernetes config
REDIS_HOST_ENV=MONOLITH_STAGE_REDIS_MASTER_PORT_6379_TCP_ADDR
REDIS_PORT_ENV=MONOLITH_STAGE_REDIS_MASTER_SERVICE_PORT_REDIS

Use RUST_TARGET env variable to set compilation target when cross-compiling:

RUST_TARGET=aarch64-unknown-linux-gnu

Other targets include:

x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-musl

Dependencies

~13–25MB
~377K SLoC