bandwidthThrottle\tokenBucket\storage\PredisStorage::getMicrotime PHP Метод

getMicrotime() публичный Метод

public getMicrotime ( )
    public function getMicrotime()
    {
        try {
            $data = $this->redis->get($this->key);
            if ($data === false) {
                throw new StorageException("Failed to get microtime");
            }
            return DoublePacker::unpack($data);
        } catch (PredisException $e) {
            throw new StorageException("Failed to get microtime", 0, $e);
        }
    }