4 |
import java.io.PrintWriter; |
import java.io.PrintWriter; |
5 |
import java.net.InetSocketAddress; |
import java.net.InetSocketAddress; |
6 |
import java.util.ArrayList; |
import java.util.ArrayList; |
|
import java.util.Collections; |
|
7 |
import java.util.Date; |
import java.util.Date; |
8 |
import java.util.Locale; |
import java.util.Locale; |
9 |
import java.util.logging.Logger; |
import java.util.logging.Logger; |
50 |
protected String doLookup(String query) throws IOException { |
protected String doLookup(String query) throws IOException { |
51 |
|
|
52 |
|
|
53 |
String key = "marketstats:" + query; |
String key = "marketstats:" + query.replace(' ', '_'); |
54 |
String response = (String) memcache.get(key); |
String response = (String) memcache.get(key); |
55 |
|
|
56 |
if (response == null) { |
if (response == null) { |
137 |
} |
} |
138 |
sb.append("Comments: " + commentBeans.size() + "\n"); |
sb.append("Comments: " + commentBeans.size() + "\n"); |
139 |
} |
} |
140 |
sb.append("Cache.Timeout=" + TIMEOUT/60 + " minutes"); |
sb.append("<!--Cache.Timeout=" + TIMEOUT/60 + " minutes-->\n"); |
141 |
|
|
142 |
|
|
143 |
return sb.toString(); |
return sb.toString(); |