diff options
| author | mo khan <mo@mokhan.ca> | 2021-07-29 16:51:20 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2021-07-29 16:51:20 -0600 |
| commit | 06d31f7b5656ed99e34a84ae59a0d17098e87f47 (patch) | |
| tree | dbcd11ba7fbdbfcf4eadb3723a80866c5ed2b8e2 | |
| parent | 17b4b305e2f0bc1c34f44bae758c31a8e5709459 (diff) | |
add READMEmain
| -rw-r--r-- | README.md | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..d596b2d --- /dev/null +++ b/README.md @@ -0,0 +1,77 @@ +# Remote Dictionary Server (redis) + +Q: What is the best way to learn redis? +A: Read this: https://raw.githubusercontent.com/redis/redis/unstable/redis.conf + +Q: Are keys unique to each database? +A: Yes. `SELECT <n>` switches the context to that database #. + +```bash +モ telnet 127.0.0.1 6380 +Trying 127.0.0.1... +Connected to localhost. +Escape character is '^]'. +KEYS * +*0 +SELECT 0 ++OK +GET xlgmokha +$-1 +SET xlgmokha "was here" ++OK +GET xlgmokha +$8 +was here +SELECT 1 ++OK +GET xlgmokha +$-1 +SET xlgmokha "dissappear" ++OK +GET xlgmokha +$10 +dissappear +SELECT 0 ++OK +GET xlgmokha +$8 +was here +QUIT ++OK +Connection closed by foreign host. +``` + +Q. What does the append only file format look like? + +```plaintext +*2 +$6 +SELECT +$1 +0 +*3 +$3 +SET +$8 +xlgmokha +$8 +was here +*2 +$6 +SELECT +$1 +1 +*3 +$3 +SET +$8 +xlgmokha +$10 +dissappear +``` + +Q: Is that it? +A: Yup! What more do you want? + +Q: Do you like Redis? +A: Yes, I appreciate how simple it is. |
