Enum CommandFlags
- Namespace
- StackExchange.Redis
- Assembly
- StackExchange.Redis.StrongName.dll
Behaviour markers associated with a given command
[Flags]
public enum CommandFlags
Fields
DemandMaster = 4
This operation should only be performed on the master.
DemandSlave = DemandMaster | PreferSlave
This operation should only be performed on a slave. Suitable for read operations only.
FireAndForget = 2
The caller is not interested in the result; the caller will immediately receive a default-value of the expected return type (this value is not indicative of anything at the server).
HighPriority = 1
This command may jump regular-priority commands that have not yet been written to the redis stream.
NoRedirect = 64
Indicates that this operation should not be forwarded to other servers as a result of an ASK or MOVED response
NoScriptCache = 512
Indicates that script-related operations should use EVAL, not SCRIPT LOAD + EVALSHA
None = 0
Default behaviour.
PreferMaster = 0
This operation should be performed on the master if it is available, but read operations may be performed on a slave if no master is available. This is the default option.
PreferSlave = 8
This operation should be performed on the slave if it is available, but will be performed on a master if no slaves are available. Suitable for read operations only.