Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 843 Bytes

README.md

File metadata and controls

30 lines (17 loc) · 843 Bytes

memcache_test

Rust test project for memcache

This project is a simple introduction to running memcached on a local MacOS and spinning up a simple client. It is not intended to be comprehensive.

This project assumes that Rust has been installed and "cargo" is on $PATH and can be executed from a MacOS terminal.

##. Install memcached on local machine

brew install memcached

##. Locate and start the memcached

/usr/local/opt/memcached/bin/memcached -l localhost

##. Create a new cargo project (clone this repo or start from scratch) You can clone this repo for the contents, but steps will be listed here anyway.

cargo new memcache_test

##. Add dependency on memcache to the Cargo.toml [dependencies] memcache = "*"

##. Go to src/main.rs and add sample test code.

##. From root directory, build and run: "cargo run"