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
pRedisKey
Returns
Equals(RedisKey)
Indicate whether two keys are equal
public bool Equals(RedisKey other)
Parameters
otherRedisKey
Returns
Equals(object)
See Object.Equals
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
See Object.GetHashCode
public override int GetHashCode()
Returns
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
pRedisKey
Returns
ToString()
Obtains a string representation of the key
public override string ToString()
Returns
Operators
operator +(RedisKey, RedisKey)
Concatenate two keys
[Obsolete]
public static RedisKey operator +(RedisKey x, RedisKey y)
Parameters
Returns
operator ==(RedisKey, RedisKey)
Indicate whether two keys are equal
public static bool operator ==(RedisKey x, RedisKey y)
Parameters
Returns
operator ==(RedisKey, byte[])
Indicate whether two keys are equal
public static bool operator ==(RedisKey x, byte[] y)
Parameters
Returns
operator ==(RedisKey, string)
Indicate whether two keys are equal
public static bool operator ==(RedisKey x, string y)
Parameters
Returns
operator ==(byte[], RedisKey)
Indicate whether two keys are equal
public static bool operator ==(byte[] x, RedisKey y)
Parameters
Returns
operator ==(string, RedisKey)
Indicate whether two keys are equal
public static bool operator ==(string x, RedisKey y)
Parameters
Returns
implicit operator byte[](RedisKey)
Obtain the key as a Byte[]
public static implicit operator byte[](RedisKey key)
Parameters
keyRedisKey
Returns
- byte[]
implicit operator string(RedisKey)
Obtain the key as a String
public static implicit operator string(RedisKey key)
Parameters
keyRedisKey
Returns
implicit operator RedisKey(byte[])
Create a key from a Byte[]
public static implicit operator RedisKey(byte[] key)
Parameters
keybyte[]
Returns
implicit operator RedisKey(string)
Create a key from a String
public static implicit operator RedisKey(string key)
Parameters
keystring
Returns
operator !=(RedisKey, RedisKey)
Indicate whether two keys are not equal
public static bool operator !=(RedisKey x, RedisKey y)
Parameters
Returns
operator !=(RedisKey, byte[])
Indicate whether two keys are not equal
public static bool operator !=(RedisKey x, byte[] y)
Parameters
Returns
operator !=(RedisKey, string)
Indicate whether two keys are not equal
public static bool operator !=(RedisKey x, string y)
Parameters
Returns
operator !=(byte[], RedisKey)
Indicate whether two keys are not equal
public static bool operator !=(byte[] x, RedisKey y)
Parameters
Returns
operator !=(string, RedisKey)
Indicate whether two keys are not equal
public static bool operator !=(string x, RedisKey y)