Skip to content

numerodix/emcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e681301 · Sep 8, 2023
Jan 5, 2016
Jan 5, 2016
Jan 9, 2016
Jan 14, 2016
Dec 29, 2015
Aug 3, 2016
Sep 8, 2023
Apr 2, 2016
Jan 1, 2016
Apr 2, 2016
Jan 11, 2016
Dec 25, 2015
Dec 31, 2015
Dec 25, 2015
Dec 25, 2015
Jan 3, 2016
Jan 3, 2016
Dec 31, 2015

Repository files navigation

emcache

Build Status Coverage Status

An implementation of memcached in Rust.

Features and todo list

  • Implements the memcached protocol.
  • Bounded cache with LRU behavior.
  • Concurrency model based on thread-per-connection.
  • Modular architecture. Transport layer is separate from storage and is configured in a N:1 topology with communication using immutable Cmd/Resp values over async channels.
  • Fairly good test coverage.
  • No config file, logging or daemonization yet.
  • Performance is generally within 0.5-1x of memcached.
  • Currently (Apr 2016) only builds against rust-nightly due to dependency on unstable "test" crate for benchmarking.

Development

To build:

$ cargo build

To run unit tests:

$ ./all_unit_tests.sh

To run the server:

$ ./run_server.sh

The Python integration test suite supplies various forms of tests. To run them against a running server:

$ python -m pyemc.main -p $PORT            # integration tests
$ python -m pyemc.main -p $PORT --stress   # burn in tests
$ python -m pyemc.main -p $PORT --fill 45  # fill to 45% capacity

About

memcached in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published