diff options
author | Rene Treffer <treffer@measite.de> | 2014-06-13 17:51:45 +0200 |
---|---|---|
committer | Rene Treffer <treffer@measite.de> | 2014-06-13 17:51:45 +0200 |
commit | 8e848f7afdb1f4ac8ac5a56d20e7ea833c5c840c (patch) | |
tree | de82d5adf59669b328aa1ede48e09135f1ea999d /src/main/java/de/measite/minidns/DNSCache.java | |
parent | 4da60e7e2071f41cb35f9eacf048c30f5dbf6ca6 (diff) |
Switch to deticated DNSCache interface + reference LRU implementation.
Diffstat (limited to 'src/main/java/de/measite/minidns/DNSCache.java')
-rw-r--r-- | src/main/java/de/measite/minidns/DNSCache.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/de/measite/minidns/DNSCache.java b/src/main/java/de/measite/minidns/DNSCache.java new file mode 100644 index 00000000..78e6c041 --- /dev/null +++ b/src/main/java/de/measite/minidns/DNSCache.java @@ -0,0 +1,12 @@ +package de.measite.minidns; + +/** + * Cache for DNS Entries. Implementations must be thread safe. + */ +public interface DNSCache { + + void put(Question q, DNSMessage message); + + DNSMessage get(Question q); + +} |