A key value datastore which stores data locally in a memory-mapped file.
Project description
# key-value-ds File based Key-Value datastore
Supports basic CRD (Create, Read, Delete)
- Functionalities:
It can be initialized using an optional file path. If one is not provided, it will reliably
- create itself.
Key string capped at 32 characters and Value must be a JSON object capped at 16KB. (These values can be changed in config.py)
Every key supports setting a Time-To-Live property when it is created. This property is optional. If provided, it will be evaluated as an integer defining the number of seconds. Once the Time-To-Live for a key has expired,
- the key will no longer be available for Read or Delete operations.
Only one process can access the datastore (local file) at a time.
Thread safe.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for key_value_ds-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b28cb343743b49cc09e8ccb1dbafdb3a260438d3a9632bd1ef64b3257bf737 |
|
MD5 | 43d24eca2696a4f2758d19525348eccc |
|
BLAKE2b-256 | a253561598cb0d3fc70f8bea806c6d87eaceb870792019eb272260e5830cdbaf |