io.ipinfo.api.cache.NoCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ipinfo-api Show documentation
Show all versions of ipinfo-api Show documentation
Java wrapper for the IPinfo API
package io.ipinfo.api.cache;
import io.ipinfo.api.model.ASNResponse;
import io.ipinfo.api.model.IPResponse;
public class NoCache implements Cache {
@Override
public IPResponse getIp(String ip) {
return null;
}
@Override
public ASNResponse getAsn(String asn) {
return null;
}
@Override
public boolean setIp(String ip, IPResponse response) {
return false;
}
@Override
public boolean setAsn(String asn, ASNResponse response) {
return false;
}
@Override
public boolean clear() {
return false;
}
}