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

DOC: What does autodump from pickledb.load do? #60

Closed MartinThoma closed 5 years ago

MartinThoma commented 5 years ago

I see that many (all?) examples use

pickledb.load('pickle.db', False)

What would happen if this was set to True?

patx commented 5 years ago

False -> The database will not be written to the file after each operation and keeps the db in memory (like set), use dump() to save db to the file True -> The database will be written to the file after each operation (like set), no need to use dump()