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;
    }