Lines Matching refs:entry
12 * Makes a random cache entry.
14 * @param isExpired Whether the TTLs should be set such that this entry is expired
15 * @param needsRefresh Whether the TTLs should be set such that this entry needs refresh
20 Cache.Entry entry = new Cache.Entry();
22 entry.data = data;
24 entry.data = new byte[random.nextInt(1024)];
26 entry.etag = String.valueOf(random.nextLong());
27 entry.lastModified = random.nextLong();
28 entry.ttl = isExpired ? 0 : Long.MAX_VALUE;
29 entry.softTtl = needsRefresh ? 0 : Long.MAX_VALUE;
30 return entry;
35 * defaults to an unexpired entry.