for example, according to the passed array, if the elements in the array are the same (the order may be different), convert to a string as the key of redis
$a=["a","b","c"];
$b=["b","a","c"];
$c=["c","b","a"];
$d=["c","b","a","d"];
function test($arr){
// do sth
$tmp = doSth($arr);
$redis->set(implode(",",$tmp),time());
}
function doSth($arr){
sort($arr);//
return $arr;
}
//$a,$b,$c a b c key doSth($a) doSth($b) doSth($c) $d