Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

phpredis and phalcon/////redis

As I understand it, Falcon methods in working with redis quite limited. Please tell me how to register redis (phpredis) as a service and use all of its features. Is this possible? Thank you in advance! Who can faced. This is justified?

$di->set('redis', function () {
$redis = new Redis(); // proper arguments etc stuff
return $redis

And in controller $this->redis or something like this.


Thank you dear friend!