Class ExpiringStorage
java.lang.Object
com.github.fppt.jedismock.storage.ExpiringStorage
- Direct Known Subclasses:
ExpiringKeyValueStorage,RMHash
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpiringStorage(Supplier<Clock> clockSupplier, Consumer<Slice> keyChangeNotifier) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()protected voidconfigureTTL(Slice key, Long ttl) protected voidgetDeadline(Slice key) protected final longprotected booleanisKeyOutdated(Slice key) protected abstract booleanlongsetDeadline(Slice key, long deadline) long
-
Field Details
-
keyChangeNotifier
-
-
Constructor Details
-
ExpiringStorage
-
-
Method Details
-
clear
protected void clear() -
delete
-
keyExists
-
isKeyOutdated
-
getTTL
-
getDeadline
-
setTTL
-
getMillis
protected final long getMillis() -
configureTTL
-
setDeadline
-
getClockSupplier
-