Class Condition
- Namespace
- StackExchange.Redis
- Assembly
- StackExchange.Redis.StrongName.dll
Describes a pre-condition used in a redis transaction
public abstract class Condition
- Inheritance
-
Condition
- Inherited Members
Methods
HashEqual(RedisKey, RedisValue, RedisValue)
Enforces that the given hash-field must have the specified value
public static Condition HashEqual(RedisKey key, RedisValue hashField, RedisValue value)
Parameters
key
RedisKeyhashField
RedisValuevalue
RedisValue
Returns
HashExists(RedisKey, RedisValue)
Enforces that the given hash-field must exist
public static Condition HashExists(RedisKey key, RedisValue hashField)
Parameters
key
RedisKeyhashField
RedisValue
Returns
HashLengthEqual(RedisKey, long)
Enforces that the given hash length is a certain value
public static Condition HashLengthEqual(RedisKey key, long length)
Parameters
Returns
HashLengthGreaterThan(RedisKey, long)
Enforces that the given hash length is greater than a certain value
public static Condition HashLengthGreaterThan(RedisKey key, long length)
Parameters
Returns
HashLengthLessThan(RedisKey, long)
Enforces that the given hash length is less than a certain value
public static Condition HashLengthLessThan(RedisKey key, long length)
Parameters
Returns
HashNotEqual(RedisKey, RedisValue, RedisValue)
Enforces that the given hash-field must not have the specified value
public static Condition HashNotEqual(RedisKey key, RedisValue hashField, RedisValue value)
Parameters
key
RedisKeyhashField
RedisValuevalue
RedisValue
Returns
HashNotExists(RedisKey, RedisValue)
Enforces that the given hash-field must not exist
public static Condition HashNotExists(RedisKey key, RedisValue hashField)
Parameters
key
RedisKeyhashField
RedisValue
Returns
KeyExists(RedisKey)
Enforces that the given key must exist
public static Condition KeyExists(RedisKey key)
Parameters
key
RedisKey
Returns
KeyNotExists(RedisKey)
Enforces that the given key must not exist
public static Condition KeyNotExists(RedisKey key)
Parameters
key
RedisKey
Returns
ListIndexEqual(RedisKey, long, RedisValue)
Enforces that the given list index must have the specified value
public static Condition ListIndexEqual(RedisKey key, long index, RedisValue value)
Parameters
key
RedisKeyindex
longvalue
RedisValue
Returns
ListIndexExists(RedisKey, long)
Enforces that the given list index must exist
public static Condition ListIndexExists(RedisKey key, long index)
Parameters
Returns
ListIndexNotEqual(RedisKey, long, RedisValue)
Enforces that the given list index must not have the specified value
public static Condition ListIndexNotEqual(RedisKey key, long index, RedisValue value)
Parameters
key
RedisKeyindex
longvalue
RedisValue
Returns
ListIndexNotExists(RedisKey, long)
Enforces that the given list index must not exist
public static Condition ListIndexNotExists(RedisKey key, long index)
Parameters
Returns
ListLengthEqual(RedisKey, long)
Enforces that the given list length is a certain value
public static Condition ListLengthEqual(RedisKey key, long length)
Parameters
Returns
ListLengthGreaterThan(RedisKey, long)
Enforces that the given list length is greater than a certain value
public static Condition ListLengthGreaterThan(RedisKey key, long length)
Parameters
Returns
ListLengthLessThan(RedisKey, long)
Enforces that the given list length is less than a certain value
public static Condition ListLengthLessThan(RedisKey key, long length)
Parameters
Returns
SetLengthEqual(RedisKey, long)
Enforces that the given set cardinality is a certain value
public static Condition SetLengthEqual(RedisKey key, long length)
Parameters
Returns
SetLengthGreaterThan(RedisKey, long)
Enforces that the given set cardinality is greater than a certain value
public static Condition SetLengthGreaterThan(RedisKey key, long length)
Parameters
Returns
SetLengthLessThan(RedisKey, long)
Enforces that the given set cardinality is less than a certain value
public static Condition SetLengthLessThan(RedisKey key, long length)
Parameters
Returns
SortedSetLengthEqual(RedisKey, long)
Enforces that the given sorted set cardinality is a certain value
public static Condition SortedSetLengthEqual(RedisKey key, long length)
Parameters
Returns
SortedSetLengthGreaterThan(RedisKey, long)
Enforces that the given sorted set cardinality is greater than a certain value
public static Condition SortedSetLengthGreaterThan(RedisKey key, long length)
Parameters
Returns
SortedSetLengthLessThan(RedisKey, long)
Enforces that the given sorted set cardinality is less than a certain value
public static Condition SortedSetLengthLessThan(RedisKey key, long length)
Parameters
Returns
StringEqual(RedisKey, RedisValue)
Enforces that the given key must have the specified value
public static Condition StringEqual(RedisKey key, RedisValue value)
Parameters
key
RedisKeyvalue
RedisValue
Returns
StringLengthEqual(RedisKey, long)
Enforces that the given string length is a certain value
public static Condition StringLengthEqual(RedisKey key, long length)
Parameters
Returns
StringLengthGreaterThan(RedisKey, long)
Enforces that the given string length is greater than a certain value
public static Condition StringLengthGreaterThan(RedisKey key, long length)
Parameters
Returns
StringLengthLessThan(RedisKey, long)
Enforces that the given string length is less than a certain value
public static Condition StringLengthLessThan(RedisKey key, long length)
Parameters
Returns
StringNotEqual(RedisKey, RedisValue)
Enforces that the given key must not have the specified value
public static Condition StringNotEqual(RedisKey key, RedisValue value)
Parameters
key
RedisKeyvalue
RedisValue