comeuplater / fastapi_cache

FastAPI simple cache
MIT License
219 stars 19 forks source link

How to pass a KEYS pattern when get cache [Redis Backend]? #16

Open mauricioribeiro opened 3 years ago

mauricioribeiro commented 3 years ago

Hi guys, I couldn't find anywhere how I can get values from a given key with a pattern. Eg.: project_* where * can be any char.

I tried something like await cache.get("project_*") but no success.

Reference: https://redis.io/commands/KEYS