public interface Cache
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear()
Clears all entries in the cache.
|
ASNResponse |
getAsn(String asn)
Gets the ASNResponse stored in cache.
|
IPResponse |
getIp(String ip)
Gets the IPResponse stored in cache.
|
boolean |
setAsn(String asn,
ASNResponse response)
Sets the ASN in the cache.
|
boolean |
setIp(String ip,
IPResponse response)
Sets the IP in the cache.
|
IPResponse getIp(String ip)
ip - The ip stringASNResponse getAsn(String asn)
asn - The asn stringboolean setIp(String ip, IPResponse response)
ip - The IP string.response - The IPResponse object - may be null.boolean setAsn(String asn, ASNResponse response)
asn - the ASN string.response - the ASNResponse object - may be null.boolean clear()
Copyright © 2019. All rights reserved.