In this section, you will learn how to develop an unsophisticated version of a key-value store in Go, which means that you will learn how to implement the core functionality of a key-value store without any additional bells and whistles. The idea behind a key-value store is modest: answer queries fast and work as fast as possible. This translates into using simple algorithms and simple data structures.
The presented program will implement the four fundamental tasks of a key-value store:
- Adding a new element
- Deleting an existing element from the key-value store based on a key
- Looking up the value of a specific key in the store
- Changing the value of an existing key
These four functions allow you to have ...