Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
yet another cache strategy
orbiteraaf7a0feaad1
diff --git a/source/net/yacy/cora/services/federated/yacy/CacheStrategy.java b/source/net/yacy/cora/services/federated/yacy/CacheStrategy.javaindex e61783b8c..95bba3aab 100644--- a/source/net/yacy/cora/services/federated/yacy/CacheStrategy.java+++ b/source/net/yacy/cora/services/federated/yacy/CacheStrategy.java@@ -29,16 +29,30 @@ public enum CacheStrategy {/** Never use the cache, all content from fresh internet source. */NOCACHE(0),+/** Use the cache if the cache exists and is fresh using the- * proxy-fresh rules. */+ * proxy-fresh rules.+ */IFFRESH(1),+/** Use the cache if the cache exists. Do not check freshness. Otherwise- * use online source. */+ * use online source.+ */IFEXIST(2),+/** Never go online, use all content from cache. If no cache entry exist,- * consider content nevertheless as available */- CACHEONLY(3);- // the fifth case may be that the CacheStrategy object is assigned NULL. That means that no snippet creation is wanted.+ * consider content nevertheless as available+ */+ CACHEONLY(3),++ /** create a snippet that does not necessarily contain the searched word,+ * but has a pretty description of the content instead+ */+ NIFTY(4);++ /** the fifth case may be that the CacheStrategy object is assigned NULL.+ * That means that no snippet creation is wanted.+ */public int code;