How can i use a set type in Phalcon\Cache\Backend\Redis

Hi, is there any way to use a set type by using Phalcon\Cache\Backend\Redis ? I found i could use save() to set a string value. How can i save a set type value? Is there any functions in phalcon to implement commands SADD, SINTER in redis ?

Thanks for your help.



359

From testing redis the past few days it seems Phalcon wraps all the redis data types, so using $redis->save("key", $value); you can save virtually any datatype, but if you want low level access then simply returning the $redis object from Phpredis instead of the Phalcon object should be ok.