ec2dns\ec2dns::getCache PHP Method

getCache() protected method

dnsCache Getter
protected getCache ( string $type, string $tag ) : false | string
$type string
$tag string
return false | string
    protected function getCache($type, $tag)
    {
        if (isset($this->dnsCache[md5($type . $tag)])) {
            if (time() - $this->ttl < $this->dnsCache[md5($type . $tag)]['created']) {
                return $this->dnsCache[md5($type . $tag)];
            } else {
                unset($this->dnsCache[md5($type . $tag)]);
                return false;
            }
        } else {
            return false;
        }
    }