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, setValuepublic static int expiry(Long exp)
StorageRecord.getExpiration() value in milliseconds to the corresponding
value in seconds.exp - the expiration valueexp/1000.public int getExpiry()
getExpiration()/1000.protected void setVersion(@Positive
long version)
setVersion in class StorageRecordversion - Record version; must be positive.Copyright © 1999–2016 Shibboleth Consortium. All rights reserved.