protected function addToExecList($key, \Closure $func)
    {
        $redis = $this->getRedis($key);
        $this->execList[md5(serialize($redis))][] = array(
            'key'      => $key,
            'function' => $func,
            'redis'    => $redis
        );
    }
protected function addToExecList($key, \Closure $func)
    {
        $redis = $this->getRedis($key);
        $this->execList[md5(serialize($redis))][] = array(
            'key'      => $key,
            'function' => $func,
            'redis'    => $redis
        );
    }
protected function addToExecList ( $ key , \ Closure $ func ) { $ redis = $ this -> getRedis ( $ key ) ; $ this -> execList [ md5 ( serialize ( $ redis ) ) ] [ ] = array ( 'key' => $ key , 'function' => $ func , 'redis' => $ redis ) ; }
add a task to the execution list

@param string   $key  clé
@param callable $func closure à ajouter

@return void
add a task to the execution list