#redis #automatic #redis-server #instance

embedded_redis_client

Automatically runs a local redis-server instance

1 unstable release

0.1.0 Jun 1, 2021

#27 in #redis-server

Apache-2.0

43KB
830 lines

Embedded Redis Client

Purpose

EmbeddedRedisClient automatically runs a redis-server instance during the life of the client application. Using EmbeddedRedisClient, multiple client instances can communicate with the redis-server instance in parallel.

If another redis server instance is already running on the configured port, then EmbeddedRedisClient connects to this already running server instead.

Unit tests

The unit tests of this crate expect the presence a redis-server binary and redis.conf file in the following locations relative to the crate root: ../database/redis/redis/redis-server ../database/redis/configuration/redis.conf

The unit tests try to connect to the redis server on redis' default port localhost/6379

Compatibility

Tested on Ubuntu 18.04 and macOS 11.2.

Limitations

Simultaneous starting of multiple EmbeddedRedisClient instances may fail.

Dependencies

~10–20MB
~304K SLoC