class

AbstractRedisClientExpected

Inherits Reference < Object

This class serves as a placeholder for a possible redis client and the specific methods we rely on.

Any redis client used must define these methods.

Instance methods

get(key : String) : String

Get the value for a key.

Source
set(key : String, value : String)

Set the value for a key.

redis_client = MyRedisClient.new
redis_client.set("my_key", "my_value") # => "my_value"
Source