|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BoundKeyOperations<K>
Operations over a Redis key. Useful for executing common key-'bound' operations to all implementations.
As the rest of the APIs, if the underlying connection is pipelined or queued/in multi mode, all methods will return null.
| Method Summary | |
|---|---|
Boolean |
expire(long timeout,
TimeUnit unit)
Sets the key time-to-live/expiration. |
Boolean |
expireAt(Date date)
Sets the key time-to-live/expiration. |
Long |
getExpire()
Returns the expiration of this key. |
K |
getKey()
Returns the key associated with this entity. |
DataType |
getType()
Returns the associated Redis type. |
Boolean |
persist()
Removes the expiration (if any) of the key. |
void |
rename(K newKey)
Renames the key. |
| Method Detail |
|---|
K getKey()
DataType getType()
Long getExpire()
Boolean expire(long timeout,
TimeUnit unit)
timeout - expiration valueunit - expiration unit
Boolean expireAt(Date date)
date - expiration date
Boolean persist()
void rename(K newKey)
newKey - new key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||