Table of Contents

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 RedisKey
hashField RedisValue
value RedisValue

Returns

Condition

HashExists(RedisKey, RedisValue)

Enforces that the given hash-field must exist

public static Condition HashExists(RedisKey key, RedisValue hashField)

Parameters

key RedisKey
hashField RedisValue

Returns

Condition

HashLengthEqual(RedisKey, long)

Enforces that the given hash length is a certain value

public static Condition HashLengthEqual(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

HashLengthGreaterThan(RedisKey, long)

Enforces that the given hash length is greater than a certain value

public static Condition HashLengthGreaterThan(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

HashLengthLessThan(RedisKey, long)

Enforces that the given hash length is less than a certain value

public static Condition HashLengthLessThan(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

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 RedisKey
hashField RedisValue
value RedisValue

Returns

Condition

HashNotExists(RedisKey, RedisValue)

Enforces that the given hash-field must not exist

public static Condition HashNotExists(RedisKey key, RedisValue hashField)

Parameters

key RedisKey
hashField RedisValue

Returns

Condition

KeyExists(RedisKey)

Enforces that the given key must exist

public static Condition KeyExists(RedisKey key)

Parameters

key RedisKey

Returns

Condition

KeyNotExists(RedisKey)

Enforces that the given key must not exist

public static Condition KeyNotExists(RedisKey key)

Parameters

key RedisKey

Returns

Condition

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 RedisKey
index long
value RedisValue

Returns

Condition

ListIndexExists(RedisKey, long)

Enforces that the given list index must exist

public static Condition ListIndexExists(RedisKey key, long index)

Parameters

key RedisKey
index long

Returns

Condition

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 RedisKey
index long
value RedisValue

Returns

Condition

ListIndexNotExists(RedisKey, long)

Enforces that the given list index must not exist

public static Condition ListIndexNotExists(RedisKey key, long index)

Parameters

key RedisKey
index long

Returns

Condition

ListLengthEqual(RedisKey, long)

Enforces that the given list length is a certain value

public static Condition ListLengthEqual(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

ListLengthGreaterThan(RedisKey, long)

Enforces that the given list length is greater than a certain value

public static Condition ListLengthGreaterThan(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

ListLengthLessThan(RedisKey, long)

Enforces that the given list length is less than a certain value

public static Condition ListLengthLessThan(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

SetLengthEqual(RedisKey, long)

Enforces that the given set cardinality is a certain value

public static Condition SetLengthEqual(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

SetLengthGreaterThan(RedisKey, long)

Enforces that the given set cardinality is greater than a certain value

public static Condition SetLengthGreaterThan(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

SetLengthLessThan(RedisKey, long)

Enforces that the given set cardinality is less than a certain value

public static Condition SetLengthLessThan(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

SortedSetLengthEqual(RedisKey, long)

Enforces that the given sorted set cardinality is a certain value

public static Condition SortedSetLengthEqual(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

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

key RedisKey
length long

Returns

Condition

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

key RedisKey
length long

Returns

Condition

StringEqual(RedisKey, RedisValue)

Enforces that the given key must have the specified value

public static Condition StringEqual(RedisKey key, RedisValue value)

Parameters

key RedisKey
value RedisValue

Returns

Condition

StringLengthEqual(RedisKey, long)

Enforces that the given string length is a certain value

public static Condition StringLengthEqual(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

StringLengthGreaterThan(RedisKey, long)

Enforces that the given string length is greater than a certain value

public static Condition StringLengthGreaterThan(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

StringLengthLessThan(RedisKey, long)

Enforces that the given string length is less than a certain value

public static Condition StringLengthLessThan(RedisKey key, long length)

Parameters

key RedisKey
length long

Returns

Condition

StringNotEqual(RedisKey, RedisValue)

Enforces that the given key must not have the specified value

public static Condition StringNotEqual(RedisKey key, RedisValue value)

Parameters

key RedisKey
value RedisValue

Returns

Condition