redis-rb / redis-client

Simple low level client for Redis 6+
MIT License
125 stars 60 forks source link

Add common convenience methods #63

Closed jcraigk closed 1 year ago

jcraigk commented 1 year ago

Similar to the https://github.com/redis/redis-rb gem, it would be very helpful to add common (or all) Redis keyword calls, so instead of redis.call('SET', 'foo', 'bar'), we could call redis.set('foo', 'bar').

byroot commented 1 year ago

The whole point of this library is not to do that.

byroot commented 1 year ago

Eventually you can do this: https://github.com/mperham/sidekiq/blob/0e91f175fe8ada215bcf64bb086ca7585fe60e3f/lib/sidekiq/redis_client_adapter.rb#L22-L34