cashews
cashews copied to clipboard
cache.invalidate(key) doesn't remove corresponded etag records
When I add CacheEtagMiddleware middleware into fastapi project cashews creates two records in redis database on GET request: one with key and one with etag. When I try to invalidate cache on POST request by using cache.invalidate(key) the cashews removes only one record. The record with fastapi::etag:... continues to be stored in redis and next GET request returns invalide (old) data.
@seekerk thanks for reporting this issue. Sure it's a bug.