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', driver='ram')
# 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for cachier_python-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7bc8ce13af0fc65bab4c428203844864cb01c73c8e25ef51606b4db75784e3e |
|
MD5 | 4afe642ca5e473cff262a8e688335190 |
|
BLAKE2b-256 | 5196b7ea0e46f0d60ef75eb1f00db0b4a1e98f8d13757ebc8085a5625d6543b1 |