em-hiredis icon indicating copy to clipboard operation
em-hiredis copied to clipboard

Method `respond_to?` returns false for any redis command

Open jomei opened this issue 8 years ago • 1 comments

redis = EM::Hiredis.connect
redis.set('some_key', 'some_value') # works great!
redis.respond_to?(:set) # => false :(

Looks like missing respond_to_missing? definition.

jomei avatar Jan 26 '17 13:01 jomei

Since the list of valid redis commands is not hard-coded (intentionally), this is not trivial to implement. It would be possible by requesting and storing a list of commands on connect, but I doubt complexity would be worthwhile.

mloughran avatar Jan 26 '17 19:01 mloughran