Conversation
|
bugbot run |
🚨 BugBot couldn't runSomething went wrong. Try again by commenting "bugbot run", or contact support (requestId: serverGenReqId_1147f7b6-5514-4a42-b008-379cb0360d64). |
# Conflicts: # fast_cache_middleware/serializers.py # fast_cache_middleware/storages/in_memory_storage.py # poetry.lock # pyproject.toml
|
bugbot run verbose=true |
|
BugBot request id: serverGenReqId_e8655b00-8a95-4772-9da2-6152f962ed95 |
There was a problem hiding this comment.
Bug: Middleware Initialization Error
The FastCacheMiddleware is incorrectly initialized with a raw Redis client (storage=redis) instead of a RedisStorage instance. The middleware expects an object implementing the BaseStorage interface, which the raw Redis client does not provide, leading to runtime errors. The correct initialization should be storage=RedisStorage(redis).
examples/redis_example.py#L26-L27
FastCacheMiddleware/examples/redis_example.py
Lines 26 to 27 in c1746d4
Bug: Redis Key Removal Fails with Regex and Incomplete Scans
The RedisStorage.remove method has two issues: It incorrectly converts regex patterns (e.g., .*) to Redis glob patterns (e.g., ./* instead of *), preventing intended keys from being matched. Additionally, it only performs a single Redis SCAN operation, failing to iterate through all results using the cursor, which leads to incomplete cache invalidation for large datasets.
fast_cache_middleware/storages/redis_storage.py#L85-L107
FastCacheMiddleware/fast_cache_middleware/storages/redis_storage.py
Lines 85 to 107 in c1746d4
BugBot free trial expires on July 22, 2025
You have used $0.00 of your $5.00 spend limit so far. Manage your spend limit in the Cursor dashboard.
Was this report helpful? Give feedback by reacting with 👍 or 👎
| 2. Extracting configuration cache from dependencies; | ||
| 3. Automatic caching of GET requests in Redis; | ||
| 4. Cache invalidation in case of modifying requests. | ||
| """ |
There was a problem hiding this comment.
можно дописать как ставить с екстрой, чтобы редис поставился
No description provided.