mloughran / em-hiredis

Eventmachine redis client
MIT License
221 stars 63 forks source link

Method `respond_to?` returns false for any redis command #52

Open jomei opened 7 years ago

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

Looks like missing respond_to_missing? definition.

mloughran commented 7 years ago

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.