aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/measite/minidns/DNSCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/measite/minidns/DNSCache.java')
-rw-r--r--src/main/java/de/measite/minidns/DNSCache.java12
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);
+
+}