public class MemcachedStorageRecord extends StorageRecord
MemcachedStorageService
.Constructor and Description |
---|
MemcachedStorageRecord(String val,
Long exp)
Creates a new instance with specific record version.
|
Modifier and Type | Method and Description |
---|---|
static int |
expiry(Long exp)
Converts a
StorageRecord.getExpiration() value in milliseconds to the corresponding value in seconds. |
int |
getExpiry()
Gets the expiration date as an integer representing seconds since the Unix epoch, 1970-01-01T00:00:00.
|
protected void |
setVersion(long version)
Sets the record version.
|
getExpiration, getValue, getValue, getVersion, incrementVersion, setExpiration, setValue, setValue
public static int expiry(Long exp)
StorageRecord.getExpiration()
value in milliseconds to the corresponding value in seconds.exp/1000
.public int getExpiry()
getExpiration()/1000
.protected void setVersion(@Positive long version)
setVersion
in class StorageRecord
version
- Record version; must be positive.Copyright © 2019. All rights reserved.