@Test public void testToMemcachedExpiration() throws Exception { assertEquals(toMemcachedExpiration(60*60*24*30), 60*60*24*30); assertEquals(toMemcachedExpiration(60*60*24*30 + 1), System.currentTimeMillis()/1000 + 60*60*24*30 + 1); }
static int toMemcachedExpiration(final int expirationInSeconds) { return expirationInSeconds <= THIRTY_DAYS ? expirationInSeconds : (int)(System.currentTimeMillis() / 1000) + expirationInSeconds; }
MemcachedUtil { static int toMemcachedExpiration(final int expirationInSeconds) { return expirationInSeconds <= THIRTY_DAYS ? expirationInSeconds : (int)(System.currentTimeMillis() / 1000) + expirationInSeconds; } }
MemcachedUtil { static int toMemcachedExpiration(final int expirationInSeconds) { return expirationInSeconds <= THIRTY_DAYS ? expirationInSeconds : (int)(System.currentTimeMillis() / 1000) + expirationInSeconds; }  }
MemcachedUtil { static int toMemcachedExpiration(final int expirationInSeconds) { return expirationInSeconds <= THIRTY_DAYS ? expirationInSeconds : (int)(System.currentTimeMillis() / 1000) + expirationInSeconds; }   }
MemcachedUtil { static int toMemcachedExpiration(final int expirationInSeconds) { return expirationInSeconds <= THIRTY_DAYS ? expirationInSeconds : (int)(System.currentTimeMillis() / 1000) + expirationInSeconds; }    }