Append only (type,key)/value store based on bitcask paper.
Project description
- You can never have enough key value stores that are:
100% python
based on bitcask
very fast (3x to 100x vs SQLite)
crash friendly
tested on millions of desktops for the Ubuntu One file sync client
Sample usage
Create a database
import tritcask db = tritcask.Tritcask("/tmp/tcask")
Put and get and kill some database
>>> db.put(0, "hello", "data") >>> db.keys() [(0, 'hello')] >>> db.get(0, "hello") 'data' >>> db.delete(0, 'hello') >>> db.keys() []
And it’s fast:
In [1]: time for i in xrange(10000): db.put(0, str(i), str(i)) CPU times: user 124 ms, sys: 52 ms, total: 176 ms Wall time: 175 ms
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Tritcask-0.3-py3-none-any.whl
(23.2 kB
view details)
File details
Details for the file Tritcask-0.3-py3-none-any.whl
.
File metadata
- Download URL: Tritcask-0.3-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d5175bb0bf05c575976a41b37bd4d1c5bd9bcf3e83bc72ab389135866353015 |
|
MD5 | 56ccd7818f1df55d8ed562e50c56d94b |
|
BLAKE2b-256 | 8d0869666b344bc131473adf1fe858f3933651c6769470cf377cf36f1f39fd18 |