Skip to main content

Append only (type,key)/value store based on bitcask paper.

Project description

# Tritcask

You can never have enough key value stores that are:
* 100% python
* based on [bitcask](https://github.com/basho/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Tritcask-0.1.tar.gz (34.3 kB view details)

Uploaded Source

File details

Details for the file Tritcask-0.1.tar.gz.

File metadata

  • Download URL: Tritcask-0.1.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Tritcask-0.1.tar.gz
Algorithm Hash digest
SHA256 458b09c0d74a358231891dda4b1bdadcf3414528af8e7850df83862053800332
MD5 4b3ab0700debc983eba1c6ff36846729
BLAKE2b-256 8ef494dbb68e19e7158b00e045e1321d9ea1f369fb506115a4e04367e0b236b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page