Sorting php array in Redis -
i have array of objects (result of mysql query)
array(28) { [0]=> array(2) { ["member_id"]=> string(5) "40105" ["last_login"]=> string(19) "2014-02-18 06:04:06" } [1]=> array(2) { ["member_id"]=> string(5) "51758" ["last_login"]=> string(19) "2014-04-21 09:29:11" } [2]=> array(2) { ["member_id"]=> string(5) "52682" ["last_login"]=> string(19) "2014-04-21 08:27:00" }
what best datatype sort in redis ? need search , add object result?
shall use set or list ?
Comments
Post a Comment