Searched refs:lifetime (Results 1 – 2 of 2) sorted by relevance
259 private long lifetime; field in MemoryCache270 public MemoryCache(boolean soft, int maxSize, int lifetime) { in MemoryCache() argument272 this.lifetime = lifetime * 1000; in MemoryCache()325 if (lifetime == 0) { in expungeExpiredEntries()373 long expirationTime = (lifetime == 0) ? 0 : in put()374 System.currentTimeMillis() + lifetime; in put()405 long time = (lifetime == 0) ? 0 : System.currentTimeMillis(); in get()431 long time = (lifetime == 0) ? 0 : System.currentTimeMillis(); in pull()468 lifetime = timeout > 0 ? timeout * 1000L : 0L; in setTimeout()
28 public MemoryCache(boolean soft, int maxSize, int lifetime) { in MemoryCache() argument91 private long lifetime; field in MemoryCache