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.
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 tostd::string, int, float_t
. The other types aslist
,set
,hash
, andzset
could sit alongside theredis_string
as types for the reply to cast to, while also usingredis_string
as type for k/v.