patx / pickledb

pickleDB is an open source key-value store using Python's json module.
https://patx.github.io/pickledb
BSD 3-Clause "New" or "Revised" License
925 stars 125 forks source link

auto_dump parameter refactor proposal #44

Closed aaronfc closed 6 years ago

aaronfc commented 6 years ago

Hi, was taking a look at the code and the auto_dump capability was not very clear in the documentation.

I took the freedom to do a little refactor:

I added also a test to check that auto_dump was working after refactor, but as it messed with the filesystem (creating and removing the file) I removed it in the end.

Cheers,

patx commented 6 years ago

clean nice!