Closed parruda closed 5 years ago
Hi @parruda , welcome to Crystal!
It seems a problem of the library. Although I created a PR, please put this monkey patch into your app if you are in hurry. 😃
class Redis
module CommandExecution
module ValueOriented
def string_or_nil_command(request : Request) : String?
res = command(request)
res = nil if res.is_a?(Array) && res.empty?
res.as(String?)
end
end
end
end
It works. Thanks a lot @maiha !
I have merged @maiha's PR and published release 2.1.1. Please try!
It works. Thanks!
Forgive me if that's just because I am just learning Crystal, but I am stuck on this. I am trying to pop something from a queue with:
The docs say:
Once timeout is reached, I am getting this error:
What am I doing wrong?