Tool classes and functions for Guiosoft projects
Project description
PY-GSTOOLS
Tool classes and functions for Guiosoft projects
Cache
Cache wrapper for multiple providers.
Usage:
from datetime import timedelta
from gs.cache import get_cache
cache = get_cache('memory')
# connection string can be:
# - memory
# - path:/path/to/cache/directory
# - redis://host:port/db_number
cache.set(key='key',
value='This is an cached data',
ttl=timedelta(seconds=600))
value = cache.get('key')
print(value)
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
py-gstools-0.1.6.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for py_gstools-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af685982064f2051b038213aa8714e77a8758de9ddc75b947ba71e39938f0805 |
|
MD5 | 648f3c593dd497f15fda7cfb57879835 |
|
BLAKE2b-256 | d91d6ef69566af687be4d33f4fd28cd9954d3c890b76dd94564a29700cce8c55 |