private function rebuildFilter($uid)
    {
        $filter = new BloomFilter($this->size, $this->probability);

        foreach ($this->listFor($uid) as $item) {
            $filter->set($item->getNodeId());
        }

        $this->cache->set($this->getCacheId($uid), $filter);

        return $filter;
    }
private function rebuildFilter($uid)
    {
        $filter = new BloomFilter($this->size, $this->probability);

        foreach ($this->listFor($uid) as $item) {
            $filter->set($item->getNodeId());
        }

        $this->cache->set($this->getCacheId($uid), $filter);

        return $filter;
    }
private function rebuildFilter ( $ uid ) { $ filter = new BloomFilter ( $ this -> size , $ this -> probability ) ; foreach ( $ this -> listFor ( $ uid ) as $ item ) { $ filter -> set ( $ item -> getNodeId ( ) ) ; } $ this -> cache -> set ( $ this -> getCacheId ( $ uid ) , $ filter ) ; return $ filter ; }
Rebuild new filter from 0 for the given user

@param int $uid
Rebuild new filter from 0 for the given user