API Documentation

For installation, more documentation, and examples see the README on GitHub.

Class Initialization

PickleDB(path) → Initialize a PickleDB instance with the specified path.

PickleDB Class Methods

set(key, value) → Add or update a key-value pair in the database.

get(key) → Retrieve the value associated with a key.

remove(key) → Delete a key and its value from the database.

all() → Retrieve a list of all keys in the database.

purge() → Clear all keys and values from the database.

save(option) → Save the current state of the database to the file.

Suggestions

If you would like to suggest an improvement or report an issue, please create an issue on GitHub.