Table of Contents

Struct RedisKey

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

Represents a key that can be stored in redis

public struct RedisKey : IEquatable<RedisKey>
Implements
Inherited Members

Methods

Append(RedisKey)

Appends p to this RedisKey, returning a new RedisKey.

Avoids some allocations if possible, repeated Prepend/Appends make it less possible.

public RedisKey Append(RedisKey p)

Parameters

p RedisKey

Returns

RedisKey

Equals(RedisKey)

Indicate whether two keys are equal

public bool Equals(RedisKey other)

Parameters

other RedisKey

Returns

bool

Equals(object)

See Object.Equals

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

See Object.GetHashCode

public override int GetHashCode()

Returns

int

Prepend(RedisKey)

Prepends p to this RedisKey, returning a new RedisKey.

Avoids some allocations if possible, repeated Prepend/Appends make it less possible.

public RedisKey Prepend(RedisKey p)

Parameters

p RedisKey

Returns

RedisKey

ToString()

Obtains a string representation of the key

public override string ToString()

Returns

string

Operators

operator +(RedisKey, RedisKey)

Concatenate two keys

[Obsolete]
public static RedisKey operator +(RedisKey x, RedisKey y)

Parameters

x RedisKey
y RedisKey

Returns

RedisKey

operator ==(RedisKey, RedisKey)

Indicate whether two keys are equal

public static bool operator ==(RedisKey x, RedisKey y)

Parameters

x RedisKey
y RedisKey

Returns

bool

operator ==(RedisKey, byte[])

Indicate whether two keys are equal

public static bool operator ==(RedisKey x, byte[] y)

Parameters

x RedisKey
y byte[]

Returns

bool

operator ==(RedisKey, string)

Indicate whether two keys are equal

public static bool operator ==(RedisKey x, string y)

Parameters

x RedisKey
y string

Returns

bool

operator ==(byte[], RedisKey)

Indicate whether two keys are equal

public static bool operator ==(byte[] x, RedisKey y)

Parameters

x byte[]
y RedisKey

Returns

bool

operator ==(string, RedisKey)

Indicate whether two keys are equal

public static bool operator ==(string x, RedisKey y)

Parameters

x string
y RedisKey

Returns

bool

implicit operator byte[](RedisKey)

Obtain the key as a Byte[]

public static implicit operator byte[](RedisKey key)

Parameters

key RedisKey

Returns

byte[]

implicit operator string(RedisKey)

Obtain the key as a String

public static implicit operator string(RedisKey key)

Parameters

key RedisKey

Returns

string

implicit operator RedisKey(byte[])

Create a key from a Byte[]

public static implicit operator RedisKey(byte[] key)

Parameters

key byte[]

Returns

RedisKey

implicit operator RedisKey(string)

Create a key from a String

public static implicit operator RedisKey(string key)

Parameters

key string

Returns

RedisKey

operator !=(RedisKey, RedisKey)

Indicate whether two keys are not equal

public static bool operator !=(RedisKey x, RedisKey y)

Parameters

x RedisKey
y RedisKey

Returns

bool

operator !=(RedisKey, byte[])

Indicate whether two keys are not equal

public static bool operator !=(RedisKey x, byte[] y)

Parameters

x RedisKey
y byte[]

Returns

bool

operator !=(RedisKey, string)

Indicate whether two keys are not equal

public static bool operator !=(RedisKey x, string y)

Parameters

x RedisKey
y string

Returns

bool

operator !=(byte[], RedisKey)

Indicate whether two keys are not equal

public static bool operator !=(byte[] x, RedisKey y)

Parameters

x byte[]
y RedisKey

Returns

bool

operator !=(string, RedisKey)

Indicate whether two keys are not equal

public static bool operator !=(string x, RedisKey y)

Parameters

x string
y RedisKey

Returns

bool