We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Redis commands support in Phalcon

Hello,

I was looking for some extra commands like lists and hashes for Redis cache, since I have found only few methods HERE for Redis. Is it possible to write raw redis commands or something like that, or I should use some external library like phpredis ?

Thanks

edited Oct '16

You can always extend redis adapter and add method to return _redis instance. Then you will get all methods from extension you posted here.



8.1k
Accepted
answer

You can compile phpredis and use it directly in Phalcon or as service without obstacles. Phpredis + Phalcon works well in production more then 2 year

Phalcon is using phpredis extension anyway and it requires it so you have to compile it anyway.



23.5k

I instaled phpredis and it works perfect. Thanks everyone on sugestions