Skip to content

Magento 2. How to write something custom in Redis?

My question is quite simple. I want to write something in redis, a value, a string, anything.

Is there any object available, some interface, that I can easily inject and store something there?

Looking for something like this:

$this->storageRedis->store($key, $value);

Any help is appreciated.