🗃️Key-Value Store
Also known as Key-Value Database, KV Store
The simplest NoSQL database. You save a value under a key and read it back.
Think of it like
Think of it like a wall of lockers. Each one has a number, and you open it to get what is inside.
Example
Emma's site keeps each logged-in user's session in a key-value store. The key is the session id, and the value is who they are.
Why it matters
When you only ever look things up by one key, nothing is faster or simpler.
Definition
Common mistake
Key takeaways
- 1Key in, value out. One lookup, one answer.
- 2Very fast. No searching inside values.
- 3Caches and sessions. Its most common jobs.