A key-value storage in the memory, it is simple and fast.
Project description
# PyKV PyKV is a key-value storage in the memory, it is simple and fast.
## Requirements Python3.8+
## Installation `bash $ pip install pykv `
## Example `python $ python >>> from pykv import KV >>> kv = KV(name="kv-app") >>> kv.put("key1", "value1") # the key1 default expires after 2 hours >>> kv.get("key1") 'value1' >>> >>> kv.put("key2", "value2", ttl=5) # the key2 expires after 5 second >>> kv.get("key2") # the key2 is deleted and return None after 5 second >>> `
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 Distribution
pykv-0.1.0.tar.gz
(1.8 kB
view hashes)
Built Distribution
pykv-0.1.0-py3-none-any.whl
(2.8 kB
view hashes)