custom_cache function

Create a custom cache backend (cachem-like)