ra1u / redis-dart

fast redis protocol parser and client
MIT License
84 stars 35 forks source link

Why does set / get commands return a nullable future? #29

Closed erf closed 3 years ago

erf commented 3 years ago

Why does set and get commands return a Future? (Nullable), when send_object returns a Future ?

Could set/get be changed to always return a Future?

ra1u commented 3 years ago

@erf , this seems corect observation. @ArnaudHeywear what is your opinion on this?

ghost commented 3 years ago

I don't remember it as a specific choice I made, so it probably comes from the automated migration tool. And yes the observation seems correct

erf commented 3 years ago

Ok, great. I can make a PR for this later.