-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca48ac0
commit a3febb4
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
## Running the server | ||
|
||
`cargo run` | ||
```bash | ||
cargo run | ||
``` | ||
|
||
In a new terminal, connect to the server via telnet: | ||
you can also set the cache size. ie: The max number of bytes the server can hold. The default is `1000 bytes` if the `CACHE_SIZE` flag is not provided. | ||
|
||
```bash | ||
CACHE_SIZE=2000 cargo run | ||
``` | ||
|
||
In a new terminal, connect to the server via telnet: | ||
|
||
```bash | ||
telnet localhost 11211 | ||
``` | ||
|
||
Passing some commands: | ||
|
||
set a value | ||
|
||
``` | ||
```bash | ||
set test 0 0 4 | ||
1234 | ||
``` | ||
|
||
get a value | ||
|
||
``` | ||
```bash | ||
get test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters