Skip to main content

key value cache

Project description

Installation

$ [sudo] pip install kv-cache

How it works

$KV_CACHE/<key>

$XDG_CACHE_HOME/kv-value/<key> by default

Functions

function __doc__
kv_cache.exists(key) return True if key exists, else False
kv_cache.get(key) get cache value
kv_cache.rm(key) remove cache key
kv_cache.update(key, string) update cache value

Examples

>>> import kv_cache
>>> kv_cache.update("key",'value')
>>> kv_cache.get("key")
'value'
>>> kv_cache.exists("key")
True
>>> kv_cache.rm("key")
>>> kv_cache.clear() # clear all keys

python-readme-generator

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

kv-cache-2019.9.25.tar.gz (1.6 kB view hashes)

Uploaded Source

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