Skip to content

Code Overview

Mohit Gupta edited this page Jun 17, 2020 · 2 revisions

Welcome to the redis-clone wiki!

  • /redis-clone/
    • /hashmap/
      • hashmap.go Implementations of thread safe hashmap
      • hashmap_test.go basic tests for testing the hashmap
    • /sortedSetMap/
      • sortedset.go Implementation of Skiplist, Sorted Set Map = sortedset_test.go B
    • main.go Main entry point that loads the in-memory db and http server for client handling
    • AOF_test_read.log Used for testing AOF function
    • inmemstore.go Contains code that processes commands from client, initialise various datastructures, handles persistence, loading data from AOF file to memory etc.
    • inmemstore_test.go e2e tests for every command including AOF persistence tests.
    • command.go helper code used to parse command. called from inmemstore.go

Run following command to get names and comments and description of code: go doc -u -all

Clone this wiki locally