DEV Community

Building the In-Memory Store: Strings, Lists, Hashes and Expiry (opens in new tab)

Discussed on DEV

In the previous post, I wrote about RESP — the protocol layer that lets a Redis server understand commands coming over TCP. But parsing a command is only the first step. Once the server receives something like: SET name Alice and the RESP parser converts it into: ["SET", "name", "Alice"] the next question is: Where does this data actually live? That is what this post is about. In this part of my Redis clone, I built the in-memory storage layer that supports: Strings Lists Hashes Key expiry Ty...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help