Key-value databases, such as Redis, Oracle Berkley DB, and Voldemort, employ a simple key-value data model to store data as a collection of unique keys mapped to value objects. This is illustrated in the following table that maps session IDs for web applications to session data:
Key (session ID) |
Value (session data) |
ab2e66d47a04798 |
{userId: "user1", ip: "75.100.144.28", date: "2018-09-28"} |
62f6nhd47a04dshj |
{userId: "user2", ip: "77.189.90.26", date: "2018-09-29"} |
83hbnndtw3e6388 |
{userId: "user3", ip: "73.43.181.201", date: "2018-09-30"} |
Key-value data structures are found in many programming languages where they are commonly referred to as dictionaries or hash maps. Key-value databases extend ...