ra1u / redis-dart

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

Should results return a type and not a string «OK»? #40

Closed erf closed 3 years ago

erf commented 3 years ago

More of a question, but would it make sense that the api would return a type instead of just the string "OK" ? Or do we just pass the redis types?

ra1u commented 3 years ago

I think that OK if I understand correctly is redis response where there is no data to return. so Redis returns OK. Interpretation is up to user. However this interpretation should be in my opinion handled in particular command. For example set() as redis command should return future with type OK, but send_object should in my opinion return whatever is received from redis.

erf commented 3 years ago

OK. I agree :)