Developing a key-value store in Go

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:

  1. Adding a new element
  2. Deleting an existing element from the key-value store based on a key
  3. Looking up the value of a specific key in the store
  4. Changing the value of an existing key

These four functions allow you to have ...

Get Mastering Go - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.