A python wrapper package for connecting to a self-hosted cachier service
Project description
Cachier Python
A python library wrapper for using a self-hosted cachier service.
URL: cachier-python
Table of Contents
Installation
Install the package from pypi:
pip install cachier-python
Usage
from cachier_python import Cachier
# Create a cachier instance to connect to the service
client = Cachier('http://localhost:8000')
# cache expiry in seconds
CACHIER_EXPIRY = 600
# set the cache
client.set(key='my_key', value='my_value', expiry=CACHIER_EXPIRY)
# get the cached value
cached_value = client.get(key='my_key')
Support
Please open an issue for support.
Contributing
Please contribute using Github Flow. Create a branch, add commits, and open a pull request. -->
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
cachier-python-0.1.5.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for cachier_python-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ed74f9bf3d4209f920c1f4c5e36c549b053661a5915e31e318ef6bedc4a86e |
|
MD5 | c6888002e7f67a27213a3487b7d8c27e |
|
BLAKE2b-256 | 94eac7170e75213a82506e27715d133ff7b3af5ddb809055acf6fa46461f5390 |