bandwidthThrottle\tokenBucket\storage\PHPRedisStorage::getMicrotime PHP Method

getMicrotime() public method

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 (RedisException $e) {
            throw new StorageException("Failed to get microtime", 0, $e);
        }
    }