public function cleanAll(): int
    {
        $cpt = 0;
        $keys = $this->getRedis()->keys($this->namespace . ':*');
        if ($keys) {
            foreach ($keys as $key) {
                $this->getRedis()->del($key);
                $cpt++;
            }
        }
        return $cpt;
    }
public function cleanAll(): int
    {
        $cpt = 0;
        $keys = $this->getRedis()->keys($this->namespace . ':*');
        if ($keys) {
            foreach ($keys as $key) {
                $this->getRedis()->del($key);
                $cpt++;
            }
        }
        return $cpt;
    }
public function cleanAll ( ) : int { $ cpt = 0 ; $ keys = $ this -> getRedis ( ) -> keys ( $ this -> namespace . ':*' ) ; if ( $ keys ) { foreach ( $ keys as $ key ) { $ this -> getRedis ( ) -> del ( $ key ) ; $ cpt ++ ; } } return $ cpt ; }
Clean all values of the current namespace
@return int Number of deleted fields
Clean all values of the current namespace