Class SetCommand
-
- All Implemented Interfaces:
Command,Event,Serializable
@CommandSpec(command="SET") public class SetCommand extends GenericKeyValueCommand
- Since:
- 2.1.0
- Author:
- Leon Chen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.moilioncircle.redis.replicator.event.Event
Event.Context
-
-
Field Summary
-
Fields inherited from class com.moilioncircle.redis.replicator.event.AbstractEvent
context
-
-
Constructor Summary
Constructors Constructor Description SetCommand()SetCommand(byte[] key, byte[] value, boolean keepTtl, ExpiredType expiredType, Long expiredValue, ExistType existType)SetCommand(byte[] key, byte[] value, boolean keepTtl, ExpiredType expiredType, Long expiredValue, ExistType existType, boolean get)SetCommand(byte[] key, byte[] value, boolean keepTtl, ExpiredType expiredType, Long expiredValue, XATType xatType, Long xatValue, ExistType existType, boolean get)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExistTypegetExistType()ExpiredTypegetExpiredType()LonggetExpiredValue()booleangetKeepTtl()XATTypegetXatType()LonggetXatValue()booleanisGet()voidsetExistType(ExistType existType)voidsetExpiredType(ExpiredType expiredType)voidsetExpiredValue(Long expiredValue)voidsetGet(boolean get)voidsetKeepTtl(boolean keepTtl)voidsetXatType(XATType xatType)voidsetXatValue(Long xatValue)-
Methods inherited from class com.moilioncircle.redis.replicator.cmd.impl.GenericKeyValueCommand
getValue, setValue
-
Methods inherited from class com.moilioncircle.redis.replicator.cmd.impl.GenericKeyCommand
getKey, setKey
-
Methods inherited from class com.moilioncircle.redis.replicator.event.AbstractEvent
getContext, setContext
-
-
-
-
Constructor Detail
-
SetCommand
public SetCommand()
-
SetCommand
public SetCommand(byte[] key, byte[] value, boolean keepTtl, ExpiredType expiredType, Long expiredValue, ExistType existType)
-
SetCommand
public SetCommand(byte[] key, byte[] value, boolean keepTtl, ExpiredType expiredType, Long expiredValue, ExistType existType, boolean get)- Parameters:
key- keyvalue- valuekeepTtl- keepttl since redis 6.0expiredType- expiredTypeexpiredValue- expiredValueexistType- existTypeget- get since redis 6.2- Since:
- 3.5.0
-
SetCommand
public SetCommand(byte[] key, byte[] value, boolean keepTtl, ExpiredType expiredType, Long expiredValue, XATType xatType, Long xatValue, ExistType existType, boolean get)- Parameters:
key- keyvalue- valuekeepTtl- keepttl since redis 6.0expiredType- expiredTypeexpiredValue- expiredValuexatType- xatTypexatValue- xatValueexistType- existTypeget- get since redis 6.2- Since:
- 3.5.2
-
-
Method Detail
-
getKeepTtl
public boolean getKeepTtl()
-
setKeepTtl
public void setKeepTtl(boolean keepTtl)
-
getExpiredType
public ExpiredType getExpiredType()
-
setExpiredType
public void setExpiredType(ExpiredType expiredType)
-
getExpiredValue
public Long getExpiredValue()
-
setExpiredValue
public void setExpiredValue(Long expiredValue)
-
getExistType
public ExistType getExistType()
-
setExistType
public void setExistType(ExistType existType)
-
isGet
public boolean isGet()
- Returns:
- get is set
- Since:
- 3.5.0
-
setGet
public void setGet(boolean get)
- Parameters:
get- set get parameter- Since:
- 3.5.0
-
getXatType
public XATType getXatType()
- Returns:
- xatType
- Since:
- 3.5.2
-
setXatType
public void setXatType(XATType xatType)
- Parameters:
xatType- xatType- Since:
- 3.5.2
-
getXatValue
public Long getXatValue()
- Returns:
- xatValue
- Since:
- 3.5.2
-
setXatValue
public void setXatValue(Long xatValue)
- Parameters:
xatValue- xatValue- Since:
- 3.5.2
-
-