kvstore is yet another implementation of a Key Value store that is implemented on a Client Server Model assuming there to be many of them running concurrently. Code maturity is considered experimental.
The functions of SET, GET and DEL (Delete) have been successfully implemented
Use go get github.com/gargprat/kvstore
. Or alternatively, download or clone the repository.
The Demo Directory contains the files corresponding to the Client and Server, both of which are contained in package main.
The kvstore_test.go
file shows usage examples and also, performs testing of the implementation. The following test cases have been considered keeping in view that several clients may concurrently bombarding the same server with different requests:
- Single SET followed by single GET, both by different clients.
- Several SET by various clients, followed by a GET.
- SET followed by SET (of the same key) followed by GET.
- SET followed by DEL followed by GET.
Prateek Garg ( gargprateek[DOT]iitb[AT]gmail[DOT]com )
The source code is automatically formatted to follow go fmt
by the [IDE]
(https://code.google.com/p/liteide/). And where pragmatic, the source code
follows this general [coding style]
(http://slamet.neocities.org/coding-style.html).