Commit Graph

16 Commits

Author SHA1 Message Date
Paul Lange
069a8e5ee0 Replace structopt with clap (#98)
* Replace `structopt` with `clap`

* Change `port` options from `String` to `u16`

* Shorten clap options config

`name` and `long` use the filed name by default.
2022-07-19 09:34:12 -07:00
Bryan Garza
25062cd238 chore: remove duplicate cfg line and comment (#99) 2022-05-25 18:02:53 +02:00
Bryan Garza
6cd697afe9 Add (optional) OpenTelemetry + Xray integration (#95) (#96)
This introduces all the necessary code to be able to send traces to
AWS Xray via `tracing-opentelemetry`. It can be optionally enabled
using the `xray` feature defined on this crate.

Also update the README.md with instructions on how to enable and use
this.
2022-05-18 09:13:19 -07:00
Liang Zheng
ca1b5b16bd add pub/sub cli (#91)
Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
2022-01-30 10:41:18 +01:00
Jamie
ebe4e1f331 Fix race condition in shutdown of background task (#81) 2021-07-13 14:27:34 +02:00
Carl Lerche
77df32d15e Track Tokio v0.3 changes (#67) 2020-10-22 20:18:54 -07:00
Taiki Endo
4c9edec0b1 Remove unnecessary allocations (#49) 2020-05-19 13:37:02 -07:00
Carl Lerche
fdba12b964 use structopt instead of Clap (#41)
mini-redis uses the CLI derive pattern. Clap does not yet have a release
supporting this pattern. Using structopt allows mini-redis to avoid git
dependencies.
2020-05-12 16:48:16 -07:00
Carl Lerche
81888e36b5 fmt (#34) 2020-04-15 09:47:28 -07:00
Carl Lerche
ecf1eb4ea8 More comments and tweak details (#33)
Co-authored-by: Alice Ryhl <alice@ryhl.io>
2020-04-15 09:44:12 -07:00
Carl Lerche
4ac69aeb76 write server test (#19) 2020-04-03 12:21:39 -07:00
Carl Lerche
bbb80c341e apply client/cli polish (#15)
Continuation of #11. Refines the client structure and implements GET.

`clap` is decoupled from the lib code. This is done to avoid any CLI
parsing concerns to leak into the lib. The main motivation for this is
to allow the reader to focus on Tokio concerns and not CLI parsing
concerns.
2020-04-01 16:09:41 -07:00
Avery Harnish
7bd7086d41 implement client set (#11) 2020-03-28 14:00:47 -07:00
Carl Lerche
fc5597f293 server: implement key expiration (#13) 2020-03-25 13:45:54 -07:00
Avery Harnish
2b6b19ebc3 feat: adds trace events to server 2020-03-03 17:14:18 -06:00
Avery Harnish
80511f2cb5 add cli for server/client (#4)
This PR adds a CLI to main.rs that allows you to run the redis server and eventually the redis client.
2020-03-03 09:15:20 -08:00