public function getIds($key)
    {
        $key = $key instanceof UnitOfTimeInterface ? $this->prefixKey . $key->getKey() : $this->prefixTempKey . $key;

        $string = $this->getRedisClient()->get($key);

        $data = $this->bitsetToString($string);

        $ids = array();
        while (false !== ($pos = strpos($data, '1'))) {
            $data[$pos] = 0;
            $ids[]  = (int)($pos/8)*8 + abs(7-($pos%8));
        }

        sort($ids);

        return $ids;
    }