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?



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

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



4.4k

Thank you dear friend!