src/Leevel/Throttler/RateLimiter.php
protected function getData(): array
    {
        if (($data = $this->cache->get($this->getKey()))) {
            $data = $this->getExplodeData($data);
        } else {
            $data = [
                $this->getInitEndTime(),
                $this->getInitCount(),
            ];
        }

        return $data;
    }
protected function getData(): array
    {
        if (($data = $this->cache->get($this->getKey()))) {
            $data = $this->getExplodeData($data);
        } else {
            $data = [
                $this->getInitEndTime(),
                $this->getInitCount(),
            ];
        }

        return $data;
    }
读取缓存数据.

@return array