YiiRedis
YiiRedis copied to clipboard
ARedisRecord need find and findAll functions
Can you please tell us is their any find and findAll related function available in ARedisRecord.php as in Cactiverecord class?
is there any one to help?
As I see there are only "findByPk" and "findAllByPk" functions available.
Example: $record = ARedisRecord::model()->findByPk(1);
we need find by attribute kind of this in yii redis. i couldnt find it. :( .
Redis is a key-value store, not a relational database. It doesn't support searching key by value. You can manually create an index "attribute value" => "id" to search model ID using redis and then load model through findByPk().