https://github.com/brsynth/simplecache
https://github.com/brsynth/simplecache
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brsynth/simplecache
- Owner: brsynth
- License: mit
- Created: 2021-06-09T09:19:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-09T10:22:35.000Z (about 5 years ago)
- Last Synced: 2025-09-09T20:14:12.849Z (9 months ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# pysimplecache - Defines a simple cache of objects
pysimplecache implements a static class (`Cache`) to store (in a non-persistent way) and share objects of any type.
## Install
### From Conda
```sh
[sudo] conda install -c conda-forge -c pysimplecache
```
## Use
### Compound
```python
from pysimplecache import Cache
o =
Cache.add(obj=o, id='my_o')
oo = Cache.get('my_o')
```
This code creates an object of any type (int, List, Dict, custom object), dd it to the cache and read it from the cache.
## Tests
Please follow instructions below to run tests:
```
cd tests
pytest -v
```
For further tests and development tools, a CI toolkit is provided in `ci` folder (see [ci/README.md](ci/README.md)).
## Authors
* **Joan Hérisson**
## Licence
pysimplecache is released under the MIT licence. See the LICENCE file for details.