Writing a key-value store

前端 未结 7 1135
梦谈多话
梦谈多话 2021-02-04 08:12

I am looking to write a Key/value store (probably in python) mostly just for experience, and because it\'s something I think that is a very useful product. I have a couple of qu

7条回答
  •  不思量自难忘°
    2021-02-04 09:15

    Have a look at Python's shelve module which provides a persitent dictionary. It basically stores pickles in a database, usually dmb or BSDDB. Looking at how shelve works will give you some insights, and the source code comes with your python distribution.

    Another product to look at is Durus. This is an object database, that it uses it's own B-tree implementation for persistence to disk.

提交回复
热议问题