Home
last modified time | relevance | path

Searched refs:writeExpirationDuration (Results 1 – 2 of 2) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
DCacheBuilderSpec.java118 @VisibleForTesting long writeExpirationDuration; field in CacheBuilderSpec
208 builder.expireAfterWrite(writeExpirationDuration, writeExpirationTimeUnit); in toCacheBuilder()
249 durationInNanos(writeExpirationDuration, writeExpirationTimeUnit), in hashCode()
270 && Objects.equal(durationInNanos(writeExpirationDuration, writeExpirationTimeUnit), in equals()
271 durationInNanos(that.writeExpirationDuration, that.writeExpirationTimeUnit)) in equals()
457 spec.writeExpirationDuration = duration; in parseDuration()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java266 assertEquals(24 * 60 * 60 * 10L, spec.writeExpirationDuration); in testParse_writeExpirationDays()
275 assertEquals(60 * 60 * 150L, spec.writeExpirationDuration); in testParse_writeExpirationHours()
283 assertEquals(60 * 10L, spec.writeExpirationDuration); in testParse_writeExpirationMinutes()
291 assertEquals(10L, spec.writeExpirationDuration); in testParse_writeExpirationSeconds()
384 assertEquals(60 * 9L, spec.writeExpirationDuration); in testParse_accessExpirationAndWriteExpiration()
405 assertEquals(60 * 60 * 1L, spec.writeExpirationDuration); in testParse_multipleKeys()
428 assertEquals(15L, spec.writeExpirationDuration); in testParse_whitespaceAllowed()