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.java119 @VisibleForTesting long writeExpirationDuration; field in CacheBuilderSpec
209 builder.expireAfterWrite(writeExpirationDuration, writeExpirationTimeUnit); in toCacheBuilder()
250 durationInNanos(writeExpirationDuration, writeExpirationTimeUnit), in hashCode()
271 && Objects.equal(durationInNanos(writeExpirationDuration, writeExpirationTimeUnit), in equals()
272 durationInNanos(that.writeExpirationDuration, that.writeExpirationTimeUnit)) in equals()
462 spec.writeExpirationDuration = duration; in parseDuration()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java266 assertEquals(10L, spec.writeExpirationDuration); in testParse_writeExpirationDays()
275 assertEquals(150L, spec.writeExpirationDuration); in testParse_writeExpirationHours()
283 assertEquals(10L, spec.writeExpirationDuration); in testParse_writeExpirationMinutes()
291 assertEquals(10L, spec.writeExpirationDuration); in testParse_writeExpirationSeconds()
384 assertEquals(9L, spec.writeExpirationDuration); in testParse_accessExpirationAndWriteExpiration()
405 assertEquals(1L, spec.writeExpirationDuration); in testParse_multipleKeys()
428 assertEquals(15L, spec.writeExpirationDuration); in testParse_whitespaceAllowed()