Skip to content
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.

cpp_redis::reply::as_double() #186

Open
whackashoe opened this issue Jul 2, 2018 · 0 comments
Open

cpp_redis::reply::as_double() #186

whackashoe opened this issue Jul 2, 2018 · 0 comments

Comments

@whackashoe
Copy link

Looking to turn a reply into a double. cpp_redis::reply::as_double() doesn't seem to exist, I'm curious if this is intentional?

I think it'd make more sense for the reply class to support a redis_string which could be casted to std::string, int, float_t. The other types as list, set, hash, and zset could sit alongside the redis_string as types for the reply to cast to, while also using redis_string as type for k/v.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant