You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for reporting! It is indeed a bug that is being stuck. We need to exclude the case of ErrDoCacheAborted from c.isRetryable(). That is, we should fix it by making it return false when resp.NonRedisError() == ErrDoCacheAborted.
But the fix won't let you use NewJSONRepository either. To use NewJSONRepository, your redis must have redisjson module installed.
Bug
Running sample code from https://github.com/redis/rueidis/tree/main/om#generic-object-mapping using a
JSONRepository
causes the repo to hang indefinitely.Initial findings
singleClient
gets stuck atDoCache
operation:Returned error:
Steps to reproduce:
redis-server
on terminalmain.go
fileNewHashRepository
withNewJSONRepository
go run main.go
Expected result
Program executes through completion without hanging.
Environment
The text was updated successfully, but these errors were encountered: