League\Geotools\Cache\Redis::isCached PHP Method

isCached() public method

{@inheritDoc}
public isCached ( $providerName, $query )
    public function isCached($providerName, $query)
    {
        if (!$this->redis->exists($key = $this->getKey($providerName, $query))) {
            return false;
        }
        $cached = new BatchGeocoded();
        $cached->fromArray($this->deserialize($this->redis->get($key)));
        return $cached;
    }