How I can add Predis library (https://github.com/nrk/predis) to Phalcon application? I want to use a Redis server to store user sessions. I use this manual https://simplapi.wordpress.com/2012/04/13/php-and-node-js-session-share-redi/
I think what I need change session adapter on dependency injection
$di->set('session', function(){
$session = new SessionAdapter();
$session->start();
return $session;
});
How to make the most correct?