Exemplo n.º 1
0
 public static function pushTailAndReturn(Predis_Client $client, $keyName, array $values, $wipeOut = 0)
 {
     if ($wipeOut == true) {
         $client->del($keyName);
     }
     foreach ($values as $value) {
         $client->rpush($keyName, $value);
     }
     return $values;
 }