abstract class AbstractRedisClientExpected
- AbstractRedisClientExpected
- Reference
- Object
Overview
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.
Defined in:
lose_the_ruby_accent.crInstance Method Summary
-
#get(key : String) : String
Get the value for a key.
-
#set(key : String, value : String)
Set the value for a key.
Instance Method Detail
abstract
def set(key : String, value : String)
#
Set the value for a key.
redis_client = MyRedisClient.new
redis_client.set("my_key", "my_value") # => "my_value"