> Every page of the ganymede website is listed in https://eugo.io/docs/ganymede/llms.txt.

# Cachey

> Cachey: Caching based on computation time and storage space. A Python demo notebook from ganymede.

Web page: https://eugo.io/docs/ganymede/demo_notebooks/data_storage/cachey/
Notebook: https://eugo.io/docs/ganymede/demo_notebooks/data_storage/cachey/cachey.ipynb (source: https://github.com/eugo-inc/ganymede/blob/main/demo_notebooks/data_storage/cachey.ipynb)

Description:
- Caching based on computation time and storage space.

Resources:
- [GitHub] https://github.com/dask/cachey

## Example 1

Create a simple cache

```python
from cachey import Cache

c = Cache(1e9, 1)  # 1 GB, cut off anything with cost 1 or less
c.put('x', 'some value', cost=3)
c.put('y', 'other value', cost=2)
c.get('x')
```
