| Modifier and Type | Field and Description |
|---|---|
protected Function<CacheSrv.Record,Long> |
expireFn |
protected long |
updateTime |
Object |
value |
| Modifier | Constructor and Description |
|---|---|
protected |
Record(Function<CacheSrv.Record,Long> expireFn,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
long |
getUpdateTime() |
protected long |
left(long timePoint)
相对于某个时间, 还剩多长时间才失效
|
protected boolean |
valid()
是否有效
|
protected final Function<CacheSrv.Record,Long> expireFn
protected long updateTime
public final Object value
protected Record(Function<CacheSrv.Record,Long> expireFn, Object value)
Copyright © 2022. All rights reserved.