abstract class AbstractRedisClientExpected

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.cr

Instance Method Summary

Instance Method Detail

abstract def get(key : String) : String #

Get the value for a key.


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"