Open songjinu opened 2 weeks ago
The issue you're experiencing with the RedisCache.upsert()
method not accepting a lock
argument is due to the method's implementation in the RedisCache
class, which indeed does not support a lock
parameter. This contrasts with the implementations in other cache classes that might accept such an argument.
To resolve this error, you should remove the lock
keyword argument from your call to the upsert
method when using RedisCache
. This adjustment will align your usage with the expected method signature and functionality, effectively eliminating the error.
For reference, the upsert
method in RedisCache
is designed to insert or update a value in the cache, with special handling for merging dictionaries if both the existing and new values are dictionaries. It does not include or require a lock
parameter for its operation.
To continue the conversation, mention @dosu.
Describe the bug I got a error when use redis cache.