Skip to main content

RedisNativeClient

This class contains all the common operations for the RedisClient. The client contains a 1:1 mapping of c# methods to redis operations of the same name.

Not threadsafe, use a pooled manager! All redis calls on a single instances write to the same Socket. If used in multiple threads (or async Tasks) at the same time you will find that commands are not executed properly by redis and Servicestack wont be able to (json) serialize the data that comes back.

Assembly: ServiceStack.Redis.dll​
View Source​
Declaration
public class RedisNativeClient : IRedisNativeClientAsync, IRedisNativeClient, IDisposable

Properties​

DeactivatedAt​

View Source​
Declaration
public DateTime? DeactivatedAt { get; set; }

HadExceptions​

View Source​
Declaration
public bool HadExceptions { get; }

LastConnectedSecs​

View Source​
Declaration
public long LastConnectedSecs { get; }

Id​

View Source​
Declaration
public long Id { get; set; }

Host​

View Source​
Declaration
public string Host { get; }

Port​

View Source​
Declaration
public int Port { get; }

Ssl​

View Source​
Declaration
public bool Ssl { get; }

SslProtocols​

View Source​
Declaration
public SslProtocols? SslProtocols { get; }

NamespacePrefix​

Gets or sets object key prefix.

View Source​
Declaration
public string NamespacePrefix { get; set; }

ConnectTimeout​

View Source​
Declaration
public int ConnectTimeout { get; set; }

RetryTimeout​

View Source​
Declaration
public int RetryTimeout { get; set; }

RetryCount​

View Source​
Declaration
public int RetryCount { get; set; }

SendTimeout​

View Source​
Declaration
public int SendTimeout { get; set; }

ReceiveTimeout​

View Source​
Declaration
public int ReceiveTimeout { get; set; }

Username​

ACL Username

View Source​
Declaration
public string Username { get; set; }

Password​

View Source​
Declaration
public string Password { get; set; }

Client​

View Source​
Declaration
public string Client { get; set; }

IdleTimeOutSecs​

View Source​
Declaration
public int IdleTimeOutSecs { get; set; }

ConnectionFilter​

View Source​
Declaration
public Action<IRedisNativeClient> ConnectionFilter { get; set; }

Db​

View Source​
Declaration
public long Db { get; set; }

DbSize​

View Source​
Declaration
public long DbSize { get; }

LastSave​

View Source​
Declaration
public DateTime LastSave { get; }

Info​

View Source​
Declaration
public Dictionary<string, string> Info { get; }

ServerVersion​

View Source​
Declaration
public string ServerVersion { get; }

IsManagedClient​

View Source​
Declaration
public bool IsManagedClient { get; }

RequestsPerHour​

View Source​
Declaration
public static int RequestsPerHour { get; }

ServerVersionNumber​

View Source​
Declaration
public static int ServerVersionNumber { get; set; }

ClientId​

View Source​
Declaration
public long ClientId { get; }

HasConnected​

View Source​
Declaration
public bool HasConnected { get; }

OnBeforeFlush​

View Source​
Declaration
public Action OnBeforeFlush { get; set; }

Fields​

socket​

View Source​
Declaration
protected Socket socket

Bstream​

View Source​
Declaration
[Obsolete("The direct stream is no longer directly available", true)]
protected BufferedStream Bstream

sslStream​

View Source​
Declaration
protected SslStream sslStream

ErrorConnect​

View Source​
Declaration
public static string ErrorConnect

Methods​

RawCommandAsync(CancellationToken, Object[])​

View Source​
Declaration
protected ValueTask<RedisData> RawCommandAsync(CancellationToken token, params object[] cmdWithArgs)
Returns​

ValueTask<ServiceStack.Redis.RedisData>

Parameters​
TypeName
System.Threading.CancellationTokentoken
System.Object[]cmdWithArgs

ChangeDb(Int64)​

View Source​
Declaration
public void ChangeDb(long db)
Parameters​
TypeName
System.Int64db

RawCommand(Object[])​

View Source​
Declaration
public RedisData RawCommand(params object[] cmdWithArgs)
Returns​

ServiceStack.Redis.RedisData

Parameters​
TypeName
System.Object[]cmdWithArgs

RawCommand(Byte[][])​

View Source​
Declaration
public RedisData RawCommand(params byte[][] cmdWithBinaryArgs)
Returns​

ServiceStack.Redis.RedisData

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

Ping()​

View Source​
Declaration
public bool Ping()
Returns​

System.Boolean

Echo(String)​

View Source​
Declaration
public string Echo(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

SlaveOf(String, Int32)​

View Source​
Declaration
public void SlaveOf(string hostname, int port)
Parameters​
TypeName
System.Stringhostname
System.Int32port

SlaveOfNoOne()​

View Source​
Declaration
public void SlaveOfNoOne()

ConfigGet(String)​

View Source​
Declaration
public byte[][] ConfigGet(string pattern)
Returns​

System.Byte[][]

Parameters​
TypeName
System.Stringpattern

ConfigSet(String, Byte[])​

View Source​
Declaration
public void ConfigSet(string item, byte[] value)
Parameters​
TypeName
System.Stringitem
System.Byte[]value

ConfigResetStat()​

View Source​
Declaration
public void ConfigResetStat()

ConfigRewrite()​

View Source​
Declaration
public void ConfigRewrite()

Time()​

View Source​
Declaration
public byte[][] Time()
Returns​

System.Byte[][]

DebugSegfault()​

View Source​
Declaration
public void DebugSegfault()

DebugSleep(Double)​

View Source​
Declaration
public void DebugSleep(double durationSecs)
Parameters​
TypeName
System.DoubledurationSecs

Dump(String)​

View Source​
Declaration
public byte[] Dump(string key)
Returns​

System.Byte[]

Parameters​
TypeName
System.Stringkey

Restore(String, Int64, Byte[])​

View Source​
Declaration
public byte[] Restore(string key, long expireMs, byte[] dumpValue)
Returns​

System.Byte[]

Parameters​
TypeName
System.Stringkey
System.Int64expireMs
System.Byte[]dumpValue

Migrate(String, Int32, String, Int32, Int64)​

View Source​
Declaration
public void Migrate(string host, int port, string key, int destinationDb, long timeoutMs)
Parameters​
TypeName
System.Stringhost
System.Int32port
System.Stringkey
System.Int32destinationDb
System.Int64timeoutMs

Move(String, Int32)​

View Source​
Declaration
public bool Move(string key, int db)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Int32db

ObjectIdleTime(String)​

View Source​
Declaration
public long ObjectIdleTime(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

Type(String)​

View Source​
Declaration
public string Type(string key)
Returns​

System.String

Parameters​
TypeName
System.Stringkey

GetEntryType(String)​

View Source​
Declaration
public RedisKeyType GetEntryType(string key)
Returns​

ServiceStack.Redis.RedisKeyType

Parameters​
TypeName
System.Stringkey

StrLen(String)​

View Source​
Declaration
public long StrLen(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

Set(String, Byte[])​

View Source​
Declaration
public void Set(string key, byte[] value)
Parameters​
TypeName
System.Stringkey
System.Byte[]value

Set(String, Byte[], Int32, Int64)​

View Source​
Declaration
public void Set(string key, byte[] value, int expirySeconds, long expiryMs = 0L)
Parameters​
TypeName
System.Stringkey
System.Byte[]value
System.Int32expirySeconds
System.Int64expiryMs

Set(Byte[], Byte[], Int32, Int64)​

View Source​
Declaration
public void Set(byte[] key, byte[] value, int expirySeconds, long expiryMs = 0L)
Parameters​
TypeName
System.Byte[]key
System.Byte[]value
System.Int32expirySeconds
System.Int64expiryMs

Set(String, Byte[], Boolean, Int32, Int64)​

View Source​
Declaration
public bool Set(string key, byte[] value, bool exists, int expirySeconds = 0, long expiryMs = 0L)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Byte[]value
System.Booleanexists
System.Int32expirySeconds
System.Int64expiryMs

SetEx(String, Int32, Byte[])​

View Source​
Declaration
public void SetEx(string key, int expireInSeconds, byte[] value)
Parameters​
TypeName
System.Stringkey
System.Int32expireInSeconds
System.Byte[]value

SetEx(Byte[], Int32, Byte[])​

View Source​
Declaration
public void SetEx(byte[] key, int expireInSeconds, byte[] value)
Parameters​
TypeName
System.Byte[]key
System.Int32expireInSeconds
System.Byte[]value

Persist(String)​

View Source​
Declaration
public bool Persist(string key)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey

PSetEx(String, Int64, Byte[])​

View Source​
Declaration
public void PSetEx(string key, long expireInMs, byte[] value)
Parameters​
TypeName
System.Stringkey
System.Int64expireInMs
System.Byte[]value

SetNX(String, Byte[])​

View Source​
Declaration
public long SetNX(string key, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Byte[]value

MSet(Byte[][], Byte[][])​

View Source​
Declaration
public void MSet(byte[][] keys, byte[][] values)
Parameters​
TypeName
System.Byte[][]keys
System.Byte[][]values

MSet(String[], Byte[][])​

View Source​
Declaration
public void MSet(string[] keys, byte[][] values)
Parameters​
TypeName
System.String[]keys
System.Byte[][]values

MSetNx(Byte[][], Byte[][])​

View Source​
Declaration
public bool MSetNx(byte[][] keys, byte[][] values)
Returns​

System.Boolean

Parameters​
TypeName
System.Byte[][]keys
System.Byte[][]values

MSetNx(String[], Byte[][])​

View Source​
Declaration
public bool MSetNx(string[] keys, byte[][] values)
Returns​

System.Boolean

Parameters​
TypeName
System.String[]keys
System.Byte[][]values

Get(String)​

View Source​
Declaration
public byte[] Get(string key)
Returns​

System.Byte[]

Parameters​
TypeName
System.Stringkey

Get(Byte[])​

View Source​
Declaration
public byte[] Get(byte[] key)
Returns​

System.Byte[]

Parameters​
TypeName
System.Byte[]key

Slowlog(Nullable<Int32>)​

View Source​
Declaration
public object[] Slowlog(int? top)
Returns​

System.Object[]

Parameters​
TypeName
System.Nullable<System.Int32>top

SlowlogReset()​

View Source​
Declaration
public void SlowlogReset()

GetBytes(String)​

View Source​
Declaration
public byte[] GetBytes(string key)
Returns​

System.Byte[]

Parameters​
TypeName
System.Stringkey

GetSet(String, Byte[])​

View Source​
Declaration
public byte[] GetSet(string key, byte[] value)
Returns​

System.Byte[]

Parameters​
TypeName
System.Stringkey
System.Byte[]value

Exists(String)​

View Source​
Declaration
public long Exists(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

Del(String)​

View Source​
Declaration
public long Del(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

Del(Byte[])​

View Source​
Declaration
public long Del(byte[] key)
Returns​

System.Int64

Parameters​
TypeName
System.Byte[]key

Del(String[])​

View Source​
Declaration
public long Del(params string[] keys)
Returns​

System.Int64

Parameters​
TypeName
System.String[]keys

Incr(String)​

View Source​
Declaration
public long Incr(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

IncrBy(String, Int32)​

View Source​
Declaration
public long IncrBy(string key, int count)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int32count

IncrBy(String, Int64)​

View Source​
Declaration
public long IncrBy(string key, long count)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int64count

IncrByFloat(String, Double)​

View Source​
Declaration
public double IncrByFloat(string key, double incrBy)
Returns​

System.Double

Parameters​
TypeName
System.Stringkey
System.DoubleincrBy

Decr(String)​

View Source​
Declaration
public long Decr(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

DecrBy(String, Int32)​

View Source​
Declaration
public long DecrBy(string key, int count)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int32count

Append(String, Byte[])​

View Source​
Declaration
public long Append(string key, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Byte[]value

GetRange(String, Int32, Int32)​

View Source​
Declaration
public byte[] GetRange(string key, int fromIndex, int toIndex)
Returns​

System.Byte[]

Parameters​
TypeName
System.Stringkey
System.Int32fromIndex
System.Int32toIndex

SetRange(String, Int32, Byte[])​

View Source​
Declaration
public long SetRange(string key, int offset, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int32offset
System.Byte[]value

GetBit(String, Int32)​

View Source​
Declaration
public long GetBit(string key, int offset)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int32offset

SetBit(String, Int32, Int32)​

View Source​
Declaration
public long SetBit(string key, int offset, int value)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int32offset
System.Int32value

BitCount(String)​

View Source​
Declaration
public long BitCount(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

RandomKey()​

View Source​
Declaration
public string RandomKey()
Returns​

System.String

Rename(String, String)​

View Source​
Declaration
public void Rename(string oldKeyName, string newKeyName)
Parameters​
TypeName
System.StringoldKeyName
System.StringnewKeyName

RenameNx(String, String)​

View Source​
Declaration
public bool RenameNx(string oldKeyName, string newKeyName)
Returns​

System.Boolean

Parameters​
TypeName
System.StringoldKeyName
System.StringnewKeyName

Expire(String, Int32)​

View Source​
Declaration
public bool Expire(string key, int seconds)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Int32seconds

Expire(Byte[], Int32)​

View Source​
Declaration
public bool Expire(byte[] key, int seconds)
Returns​

System.Boolean

Parameters​
TypeName
System.Byte[]key
System.Int32seconds

PExpire(String, Int64)​

View Source​
Declaration
public bool PExpire(string key, long ttlMs)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Int64ttlMs

PExpire(Byte[], Int64)​

View Source​
Declaration
public bool PExpire(byte[] key, long ttlMs)
Returns​

System.Boolean

Parameters​
TypeName
System.Byte[]key
System.Int64ttlMs

ExpireAt(String, Int64)​

View Source​
Declaration
public bool ExpireAt(string key, long unixTime)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Int64unixTime

PExpireAt(String, Int64)​

View Source​
Declaration
public bool PExpireAt(string key, long unixTimeMs)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Int64unixTimeMs

Ttl(String)​

View Source​
Declaration
public long Ttl(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

PTtl(String)​

View Source​
Declaration
public long PTtl(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

Save()​

View Source​
Declaration
public void Save()

SaveAsync()​

View Source​
Declaration
public void SaveAsync()

BgSave()​

View Source​
Declaration
public void BgSave()

Shutdown()​

View Source​
Declaration
public void Shutdown()

ShutdownNoSave()​

View Source​
Declaration
public void ShutdownNoSave()

BgRewriteAof()​

View Source​
Declaration
public void BgRewriteAof()

Quit()​

View Source​
Declaration
public void Quit()

FlushDb()​

View Source​
Declaration
public void FlushDb()

FlushAll()​

View Source​
Declaration
public void FlushAll()

Role()​

View Source​
Declaration
public RedisText Role()
Returns​

ServiceStack.Redis.RedisText

ClientGetName()​

View Source​
Declaration
public string ClientGetName()
Returns​

System.String

ClientSetName(String)​

View Source​
Declaration
public void ClientSetName(string name)
Parameters​
TypeName
System.Stringname

ClientPause(Int32)​

View Source​
Declaration
public void ClientPause(int timeOutMs)
Parameters​
TypeName
System.Int32timeOutMs

ClientList()​

View Source​
Declaration
public byte[] ClientList()
Returns​

System.Byte[]

ClientKill(String)​

View Source​
Declaration
public void ClientKill(string clientAddr)
Parameters​
TypeName
System.StringclientAddr

ClientKill(String, String, String, String)​

View Source​
Declaration
public long ClientKill(string addr = null, string id = null, string type = null, string skipMe = null)
Returns​

System.Int64

Parameters​
TypeName
System.Stringaddr
System.Stringid
System.Stringtype
System.StringskipMe

Keys(String)​

View Source​
Declaration
public byte[][] Keys(string pattern)
Returns​

System.Byte[][]

Parameters​
TypeName
System.Stringpattern

MGet(Byte[][])​

View Source​
Declaration
public byte[][] MGet(params byte[][] keys)
Returns​

System.Byte[][]

Parameters​
TypeName
System.Byte[][]keys

MGet(String[])​

View Source​
Declaration
public byte[][] MGet(params string[] keys)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]keys

Watch(String[])​

View Source​
Declaration
public void Watch(params string[] keys)
Parameters​
TypeName
System.String[]keys

UnWatch()​

View Source​
Declaration
public void UnWatch()

Scan(UInt64, Int32, String)​

View Source​
Declaration
public ScanResult Scan(ulong cursor, int count = 10, string match = null)
Returns​

ServiceStack.Redis.ScanResult

Parameters​
TypeName
System.UInt64cursor
System.Int32count
System.Stringmatch

SScan(String, UInt64, Int32, String)​

View Source​
Declaration
public ScanResult SScan(string setId, ulong cursor, int count = 10, string match = null)
Returns​

ServiceStack.Redis.ScanResult

Parameters​
TypeName
System.StringsetId
System.UInt64cursor
System.Int32count
System.Stringmatch

ZScan(String, UInt64, Int32, String)​

View Source​
Declaration
public ScanResult ZScan(string setId, ulong cursor, int count = 10, string match = null)
Returns​

ServiceStack.Redis.ScanResult

Parameters​
TypeName
System.StringsetId
System.UInt64cursor
System.Int32count
System.Stringmatch

HScan(String, UInt64, Int32, String)​

View Source​
Declaration
public ScanResult HScan(string hashId, ulong cursor, int count = 10, string match = null)
Returns​

ServiceStack.Redis.ScanResult

Parameters​
TypeName
System.StringhashId
System.UInt64cursor
System.Int32count
System.Stringmatch

PfAdd(String, Byte[][])​

View Source​
Declaration
public bool PfAdd(string key, params byte[][] elements)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Byte[][]elements

PfCount(String)​

View Source​
Declaration
public long PfCount(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

PfMerge(String, String[])​

View Source​
Declaration
public void PfMerge(string toKeyId, params string[] fromKeys)
Parameters​
TypeName
System.StringtoKeyId
System.String[]fromKeys

SMembers(String)​

View Source​
Declaration
public byte[][] SMembers(string setId)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId

SAdd(String, Byte[])​

View Source​
Declaration
public long SAdd(string setId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Byte[]value

SAdd(String, Byte[][])​

View Source​
Declaration
public long SAdd(string setId, byte[][] values)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Byte[][]values

SRem(String, Byte[])​

View Source​
Declaration
public long SRem(string setId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Byte[]value

SRem(String, Byte[][])​

View Source​
Declaration
public long SRem(string setId, byte[][] values)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Byte[][]values

SPop(String)​

View Source​
Declaration
public byte[] SPop(string setId)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringsetId

SPop(String, Int32)​

View Source​
Declaration
public byte[][] SPop(string setId, int count)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int32count

SMove(String, String, Byte[])​

View Source​
Declaration
public void SMove(string fromSetId, string toSetId, byte[] value)
Parameters​
TypeName
System.StringfromSetId
System.StringtoSetId
System.Byte[]value

SCard(String)​

View Source​
Declaration
public long SCard(string setId)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId

SIsMember(String, Byte[])​

View Source​
Declaration
public long SIsMember(string setId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Byte[]value

SInter(String[])​

View Source​
Declaration
public byte[][] SInter(params string[] setIds)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]setIds

SInterStore(String, String[])​

View Source​
Declaration
public void SInterStore(string intoSetId, params string[] setIds)
Parameters​
TypeName
System.StringintoSetId
System.String[]setIds

SUnion(String[])​

View Source​
Declaration
public byte[][] SUnion(params string[] setIds)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]setIds

SUnionStore(String, String[])​

View Source​
Declaration
public void SUnionStore(string intoSetId, params string[] setIds)
Parameters​
TypeName
System.StringintoSetId
System.String[]setIds

SDiff(String, String[])​

View Source​
Declaration
public byte[][] SDiff(string fromSetId, params string[] withSetIds)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringfromSetId
System.String[]withSetIds

SDiffStore(String, String, String[])​

View Source​
Declaration
public void SDiffStore(string intoSetId, string fromSetId, params string[] withSetIds)
Parameters​
TypeName
System.StringintoSetId
System.StringfromSetId
System.String[]withSetIds

SRandMember(String)​

View Source​
Declaration
public byte[] SRandMember(string setId)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringsetId

SRandMember(String, Int32)​

View Source​
Declaration
public byte[][] SRandMember(string setId, int count)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int32count

LRange(String, Int32, Int32)​

View Source​
Declaration
public byte[][] LRange(string listId, int startingFrom, int endingAt)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringlistId
System.Int32startingFrom
System.Int32endingAt

Sort(String, SortOptions)​

View Source​
Declaration
public byte[][] Sort(string listOrSetId, SortOptions sortOptions)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringlistOrSetId
ServiceStack.Redis.SortOptionssortOptions

RPush(String, Byte[])​

View Source​
Declaration
public long RPush(string listId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId
System.Byte[]value

RPush(String, Byte[][])​

View Source​
Declaration
public long RPush(string listId, byte[][] values)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId
System.Byte[][]values

RPushX(String, Byte[])​

View Source​
Declaration
public long RPushX(string listId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId
System.Byte[]value

LPush(String, Byte[])​

View Source​
Declaration
public long LPush(string listId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId
System.Byte[]value

LPush(String, Byte[][])​

View Source​
Declaration
public long LPush(string listId, byte[][] values)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId
System.Byte[][]values

LPushX(String, Byte[])​

View Source​
Declaration
public long LPushX(string listId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId
System.Byte[]value

LTrim(String, Int32, Int32)​

View Source​
Declaration
public void LTrim(string listId, int keepStartingFrom, int keepEndingAt)
Parameters​
TypeName
System.StringlistId
System.Int32keepStartingFrom
System.Int32keepEndingAt

LRem(String, Int32, Byte[])​

View Source​
Declaration
public long LRem(string listId, int removeNoOfMatches, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId
System.Int32removeNoOfMatches
System.Byte[]value

LLen(String)​

View Source​
Declaration
public long LLen(string listId)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId

LIndex(String, Int32)​

View Source​
Declaration
public byte[] LIndex(string listId, int listIndex)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringlistId
System.Int32listIndex

LInsert(String, Boolean, Byte[], Byte[])​

View Source​
Declaration
public void LInsert(string listId, bool insertBefore, byte[] pivot, byte[] value)
Parameters​
TypeName
System.StringlistId
System.BooleaninsertBefore
System.Byte[]pivot
System.Byte[]value

LSet(String, Int32, Byte[])​

View Source​
Declaration
public void LSet(string listId, int listIndex, byte[] value)
Parameters​
TypeName
System.StringlistId
System.Int32listIndex
System.Byte[]value

LPop(String)​

View Source​
Declaration
public byte[] LPop(string listId)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringlistId

RPop(String)​

View Source​
Declaration
public byte[] RPop(string listId)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringlistId

BLPop(String, Int32)​

View Source​
Declaration
public byte[][] BLPop(string listId, int timeOutSecs)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringlistId
System.Int32timeOutSecs

BLPop(String[], Int32)​

View Source​
Declaration
public byte[][] BLPop(string[] listIds, int timeOutSecs)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]listIds
System.Int32timeOutSecs

BLPopValue(String, Int32)​

View Source​
Declaration
public byte[] BLPopValue(string listId, int timeOutSecs)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringlistId
System.Int32timeOutSecs

BLPopValue(String[], Int32)​

View Source​
Declaration
public byte[][] BLPopValue(string[] listIds, int timeOutSecs)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]listIds
System.Int32timeOutSecs

BRPop(String, Int32)​

View Source​
Declaration
public byte[][] BRPop(string listId, int timeOutSecs)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringlistId
System.Int32timeOutSecs

BRPop(String[], Int32)​

View Source​
Declaration
public byte[][] BRPop(string[] listIds, int timeOutSecs)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]listIds
System.Int32timeOutSecs

BRPopValue(String, Int32)​

View Source​
Declaration
public byte[] BRPopValue(string listId, int timeOutSecs)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringlistId
System.Int32timeOutSecs

BRPopValue(String[], Int32)​

View Source​
Declaration
public byte[][] BRPopValue(string[] listIds, int timeOutSecs)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]listIds
System.Int32timeOutSecs

RPopLPush(String, String)​

View Source​
Declaration
public byte[] RPopLPush(string fromListId, string toListId)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringfromListId
System.StringtoListId

BRPopLPush(String, String, Int32)​

View Source​
Declaration
public byte[] BRPopLPush(string fromListId, string toListId, int timeOutSecs)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringfromListId
System.StringtoListId
System.Int32timeOutSecs

SentinelMasters()​

View Source​
Declaration
public List<Dictionary<string, string>> SentinelMasters()
Returns​

System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>

SentinelMaster(String)​

View Source​
Declaration
public Dictionary<string, string> SentinelMaster(string masterName)
Returns​

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters​
TypeName
System.StringmasterName

SentinelSentinels(String)​

View Source​
Declaration
public List<Dictionary<string, string>> SentinelSentinels(string masterName)
Returns​

System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>

Parameters​
TypeName
System.StringmasterName

SentinelSlaves(String)​

View Source​
Declaration
public List<Dictionary<string, string>> SentinelSlaves(string masterName)
Returns​

System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>

Parameters​
TypeName
System.StringmasterName

SentinelGetMasterAddrByName(String)​

View Source​
Declaration
public List<string> SentinelGetMasterAddrByName(string masterName)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringmasterName

SentinelFailover(String)​

View Source​
Declaration
public void SentinelFailover(string masterName)
Parameters​
TypeName
System.StringmasterName

ZAdd(String, Double, Byte[])​

View Source​
Declaration
public long ZAdd(string setId, double score, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Doublescore
System.Byte[]value

ZAdd(String, Int64, Byte[])​

View Source​
Declaration
public long ZAdd(string setId, long score, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Int64score
System.Byte[]value

ZAdd(String, List<KeyValuePair<Byte[], Double>>)​

View Source​
Declaration
public long ZAdd(string setId, List<KeyValuePair<byte[], double>> pairs)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Byte[],System.Double>>pairs

ZAdd(String, List<KeyValuePair<Byte[], Int64>>)​

View Source​
Declaration
public long ZAdd(string setId, List<KeyValuePair<byte[], long>> pairs)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Byte[],System.Int64>>pairs

ZRem(String, Byte[])​

View Source​
Declaration
public long ZRem(string setId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Byte[]value

ZRem(String, Byte[][])​

View Source​
Declaration
public long ZRem(string setId, byte[][] values)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Byte[][]values

ZIncrBy(String, Double, Byte[])​

View Source​
Declaration
public double ZIncrBy(string setId, double incrBy, byte[] value)
Returns​

System.Double

Parameters​
TypeName
System.StringsetId
System.DoubleincrBy
System.Byte[]value

ZIncrBy(String, Int64, Byte[])​

View Source​
Declaration
public double ZIncrBy(string setId, long incrBy, byte[] value)
Returns​

System.Double

Parameters​
TypeName
System.StringsetId
System.Int64incrBy
System.Byte[]value

ZRank(String, Byte[])​

View Source​
Declaration
public long ZRank(string setId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Byte[]value

ZRevRank(String, Byte[])​

View Source​
Declaration
public long ZRevRank(string setId, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Byte[]value

ZRange(String, Int32, Int32)​

View Source​
Declaration
public byte[][] ZRange(string setId, int min, int max)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRangeWithScores(String, Int32, Int32)​

View Source​
Declaration
public byte[][] ZRangeWithScores(string setId, int min, int max)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRevRange(String, Int32, Int32)​

View Source​
Declaration
public byte[][] ZRevRange(string setId, int min, int max)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRevRangeWithScores(String, Int32, Int32)​

View Source​
Declaration
public byte[][] ZRevRangeWithScores(string setId, int min, int max)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRangeByScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
public byte[][] ZRangeByScore(string setId, double min, double max, int? skip, int? take)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Doublemin
System.Doublemax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRangeByScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
public byte[][] ZRangeByScore(string setId, long min, long max, int? skip, int? take)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int64min
System.Int64max
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRangeByScoreWithScores(String, Double, Double, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
public byte[][] ZRangeByScoreWithScores(string setId, double min, double max, int? skip, int? take)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Doublemin
System.Doublemax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRangeByScoreWithScores(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
public byte[][] ZRangeByScoreWithScores(string setId, long min, long max, int? skip, int? take)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int64min
System.Int64max
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRevRangeByScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
public byte[][] ZRevRangeByScore(string setId, double min, double max, int? skip, int? take)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Doublemin
System.Doublemax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRevRangeByScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
public byte[][] ZRevRangeByScore(string setId, long min, long max, int? skip, int? take)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int64min
System.Int64max
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRevRangeByScoreWithScores(String, Double, Double, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
public byte[][] ZRevRangeByScoreWithScores(string setId, double min, double max, int? skip, int? take)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Doublemin
System.Doublemax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRevRangeByScoreWithScores(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
public byte[][] ZRevRangeByScoreWithScores(string setId, long min, long max, int? skip, int? take)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Int64min
System.Int64max
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRemRangeByRank(String, Int32, Int32)​

View Source​
Declaration
public long ZRemRangeByRank(string setId, int min, int max)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRemRangeByScore(String, Double, Double)​

View Source​
Declaration
public long ZRemRangeByScore(string setId, double fromScore, double toScore)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

ZRemRangeByScore(String, Int64, Int64)​

View Source​
Declaration
public long ZRemRangeByScore(string setId, long fromScore, long toScore)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

ZCard(String)​

View Source​
Declaration
public long ZCard(string setId)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId

ZCount(String, Double, Double)​

View Source​
Declaration
public long ZCount(string setId, double min, double max)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Doublemin
System.Doublemax

ZCount(String, Int64, Int64)​

View Source​
Declaration
public long ZCount(string setId, long min, long max)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Int64min
System.Int64max

ZScore(String, Byte[])​

View Source​
Declaration
public double ZScore(string setId, byte[] value)
Returns​

System.Double

Parameters​
TypeName
System.StringsetId
System.Byte[]value

ZUnionStore(String, String[])​

View Source​
Declaration
public long ZUnionStore(string intoSetId, params string[] setIds)
Returns​

System.Int64

Parameters​
TypeName
System.StringintoSetId
System.String[]setIds

ZUnionStore(String, String[], String[])​

View Source​
Declaration
public long ZUnionStore(string intoSetId, string[] setIds, string[] args)
Returns​

System.Int64

Parameters​
TypeName
System.StringintoSetId
System.String[]setIds
System.String[]args

ZInterStore(String, String[])​

View Source​
Declaration
public long ZInterStore(string intoSetId, params string[] setIds)
Returns​

System.Int64

Parameters​
TypeName
System.StringintoSetId
System.String[]setIds

ZInterStore(String, String[], String[])​

View Source​
Declaration
public long ZInterStore(string intoSetId, string[] setIds, string[] args)
Returns​

System.Int64

Parameters​
TypeName
System.StringintoSetId
System.String[]setIds
System.String[]args

ZRangeByLex(String, String, String, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
public byte[][] ZRangeByLex(string setId, string min, string max, int? skip = null, int? take = null)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringsetId
System.Stringmin
System.Stringmax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZLexCount(String, String, String)​

View Source​
Declaration
public long ZLexCount(string setId, string min, string max)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Stringmin
System.Stringmax

ZRemRangeByLex(String, String, String)​

View Source​
Declaration
public long ZRemRangeByLex(string setId, string min, string max)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Stringmin
System.Stringmax

HSet(String, Byte[], Byte[])​

View Source​
Declaration
public long HSet(string hashId, byte[] key, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId
System.Byte[]key
System.Byte[]value

HSet(Byte[], Byte[], Byte[])​

View Source​
Declaration
public long HSet(byte[] hashId, byte[] key, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.Byte[]hashId
System.Byte[]key
System.Byte[]value

HSetNX(String, Byte[], Byte[])​

View Source​
Declaration
public long HSetNX(string hashId, byte[] key, byte[] value)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId
System.Byte[]key
System.Byte[]value

HMSet(String, Byte[][], Byte[][])​

View Source​
Declaration
public void HMSet(string hashId, byte[][] keys, byte[][] values)
Parameters​
TypeName
System.StringhashId
System.Byte[][]keys
System.Byte[][]values

HIncrby(String, Byte[], Int32)​

View Source​
Declaration
public long HIncrby(string hashId, byte[] key, int incrementBy)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId
System.Byte[]key
System.Int32incrementBy

HIncrby(String, Byte[], Int64)​

View Source​
Declaration
public long HIncrby(string hashId, byte[] key, long incrementBy)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId
System.Byte[]key
System.Int64incrementBy

HIncrbyFloat(String, Byte[], Double)​

View Source​
Declaration
public double HIncrbyFloat(string hashId, byte[] key, double incrementBy)
Returns​

System.Double

Parameters​
TypeName
System.StringhashId
System.Byte[]key
System.DoubleincrementBy

HGet(String, Byte[])​

View Source​
Declaration
public byte[] HGet(string hashId, byte[] key)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringhashId
System.Byte[]key

HGet(Byte[], Byte[])​

View Source​
Declaration
public byte[] HGet(byte[] hashId, byte[] key)
Returns​

System.Byte[]

Parameters​
TypeName
System.Byte[]hashId
System.Byte[]key

HMGet(String, Byte[][])​

View Source​
Declaration
public byte[][] HMGet(string hashId, params byte[][] keys)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringhashId
System.Byte[][]keys

HDel(String, Byte[])​

View Source​
Declaration
public long HDel(string hashId, byte[] key)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId
System.Byte[]key

HDel(Byte[], Byte[])​

View Source​
Declaration
public long HDel(byte[] hashId, byte[] key)
Returns​

System.Int64

Parameters​
TypeName
System.Byte[]hashId
System.Byte[]key

HDel(String, Byte[][])​

View Source​
Declaration
public long HDel(string hashId, byte[][] keys)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId
System.Byte[][]keys

HExists(String, Byte[])​

View Source​
Declaration
public long HExists(string hashId, byte[] key)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId
System.Byte[]key

HLen(String)​

View Source​
Declaration
public long HLen(string hashId)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId

HKeys(String)​

View Source​
Declaration
public byte[][] HKeys(string hashId)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringhashId

HVals(String)​

View Source​
Declaration
public byte[][] HVals(string hashId)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringhashId

HGetAll(String)​

View Source​
Declaration
public byte[][] HGetAll(string hashId)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringhashId

Publish(String, Byte[])​

View Source​
Declaration
public long Publish(string toChannel, byte[] message)
Returns​

System.Int64

Parameters​
TypeName
System.StringtoChannel
System.Byte[]message

ReceiveMessages()​

View Source​
Declaration
public byte[][] ReceiveMessages()
Returns​

System.Byte[][]

CreateSubscription()​

View Source​
Declaration
public virtual IRedisSubscription CreateSubscription()
Returns​

ServiceStack.Redis.IRedisSubscription

Subscribe(String[])​

View Source​
Declaration
public byte[][] Subscribe(params string[] toChannels)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]toChannels

UnSubscribe(String[])​

View Source​
Declaration
public byte[][] UnSubscribe(params string[] fromChannels)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]fromChannels

PSubscribe(String[])​

View Source​
Declaration
public byte[][] PSubscribe(params string[] toChannelsMatchingPatterns)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]toChannelsMatchingPatterns

PUnSubscribe(String[])​

View Source​
Declaration
public byte[][] PUnSubscribe(params string[] fromChannelsMatchingPatterns)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]fromChannelsMatchingPatterns

CreatePipelineCommand()​

View Source​
Declaration
public RedisPipelineCommand CreatePipelineCommand()
Returns​

ServiceStack.Redis.Pipeline.RedisPipelineCommand

GeoAdd(String, Double, Double, String)​

View Source​
Declaration
public long GeoAdd(string key, double longitude, double latitude, string member)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Doublelongitude
System.Doublelatitude
System.Stringmember

GeoAdd(String, RedisGeo[])​

View Source​
Declaration
public long GeoAdd(string key, params RedisGeo[] geoPoints)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
ServiceStack.Redis.RedisGeo[]geoPoints

GeoDist(String, String, String, String)​

View Source​
Declaration
public double GeoDist(string key, string fromMember, string toMember, string unit = null)
Returns​

System.Double

Parameters​
TypeName
System.Stringkey
System.StringfromMember
System.StringtoMember
System.Stringunit

GeoHash(String, String[])​

View Source​
Declaration
public string[] GeoHash(string key, params string[] members)
Returns​

System.String[]

Parameters​
TypeName
System.Stringkey
System.String[]members

GeoPos(String, String[])​

View Source​
Declaration
public List<RedisGeo> GeoPos(string key, params string[] members)
Returns​

System.Collections.Generic.List<ServiceStack.Redis.RedisGeo>

Parameters​
TypeName
System.Stringkey
System.String[]members

GeoRadius(String, Double, Double, Double, String, Boolean, Boolean, Boolean, Nullable<Int32>, Nullable<Boolean>)​

View Source​
Declaration
public List<RedisGeoResult> GeoRadius(string key, double longitude, double latitude, double radius, string unit, bool withCoords = false, bool withDist = false, bool withHash = false, int? count = null, bool? asc = null)
Returns​

System.Collections.Generic.List<ServiceStack.Redis.RedisGeoResult>

Parameters​
TypeName
System.Stringkey
System.Doublelongitude
System.Doublelatitude
System.Doubleradius
System.Stringunit
System.BooleanwithCoords
System.BooleanwithDist
System.BooleanwithHash
System.Nullable<System.Int32>count
System.Nullable<System.Boolean>asc

GeoRadiusByMember(String, String, Double, String, Boolean, Boolean, Boolean, Nullable<Int32>, Nullable<Boolean>)​

View Source​
Declaration
public List<RedisGeoResult> GeoRadiusByMember(string key, string member, double radius, string unit, bool withCoords = false, bool withDist = false, bool withHash = false, int? count = null, bool? asc = null)
Returns​

System.Collections.Generic.List<ServiceStack.Redis.RedisGeoResult>

Parameters​
TypeName
System.Stringkey
System.Stringmember
System.Doubleradius
System.Stringunit
System.BooleanwithCoords
System.BooleanwithDist
System.BooleanwithHash
System.Nullable<System.Int32>count
System.Nullable<System.Boolean>asc

Dispose()​

View Source​
Declaration
public virtual void Dispose()

Finalize()​

View Source​
Declaration
protected void Finalize()

Dispose(Boolean)​

View Source​
Declaration
protected virtual void Dispose(bool disposing)
Parameters​
TypeName
System.Booleandisposing

SendWithoutReadAsync(CancellationToken, Byte[][])​

View Source​
Declaration
protected ValueTask SendWithoutReadAsync(CancellationToken token, params byte[][] cmdWithBinaryArgs)
Returns​

ValueTask

Parameters​
TypeName
System.Threading.CancellationTokentoken
System.Byte[][]cmdWithBinaryArgs

SendExpectStringAsync(CancellationToken, Byte[][])​

View Source​
Declaration
protected ValueTask<string> SendExpectStringAsync(CancellationToken token, params byte[][] cmdWithBinaryArgs)
Returns​

ValueTask<System.String>

Parameters​
TypeName
System.Threading.CancellationTokentoken
System.Byte[][]cmdWithBinaryArgs

SendExpectComplexResponseAsync(CancellationToken, Byte[][])​

View Source​
Declaration
protected ValueTask<RedisData> SendExpectComplexResponseAsync(CancellationToken token, params byte[][] cmdWithBinaryArgs)
Returns​

ValueTask<ServiceStack.Redis.RedisData>

Parameters​
TypeName
System.Threading.CancellationTokentoken
System.Byte[][]cmdWithBinaryArgs

AssertServerVersionNumber()​

View Source​
Declaration
public int AssertServerVersionNumber()
Returns​

System.Int32

DisposeTimers()​

View Source​
Declaration
public static void DisposeTimers()

OnConnected()​

View Source​
Declaration
public virtual void OnConnected()

ReadLine()​

View Source​
Declaration
protected string ReadLine()
Returns​

System.String

IsSocketConnected()​

View Source​
Declaration
public bool IsSocketConnected()
Returns​

System.Boolean

WriteCommandToSendBuffer(Byte[][])​

Command to set multiple binary safe arguments

View Source​
Declaration
protected void WriteCommandToSendBuffer(params byte[][] cmdWithBinaryArgs)
Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendUnmanagedExpectSuccess(Byte[][])​

Send command outside of managed Write Buffer

View Source​
Declaration
protected void SendUnmanagedExpectSuccess(params byte[][] cmdWithBinaryArgs)
Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

WriteAllToSendBuffer(Byte[][])​

View Source​
Declaration
public void WriteAllToSendBuffer(params byte[][] cmdWithBinaryArgs)
Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

WriteToSendBuffer(Byte[])​

View Source​
Declaration
public void WriteToSendBuffer(byte[] cmdBytes)
Parameters​
TypeName
System.Byte[]cmdBytes

ResetSendBuffer()​

reset buffer index in send buffer

View Source​
Declaration
public void ResetSendBuffer()

SendReceive<T>(Byte[][], Func<T>, Action<Func<T>>, Boolean, String)​

View Source​
Declaration
protected T SendReceive<T>(byte[][] cmdWithBinaryArgs, Func<T> fn, Action<Func<T>> completePipelineFn = null, bool sendWithoutRead = false, string operation = "")
Returns​

<T>

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs
System.Func<<T>>fn
System.Action<System.Func<<T>>>completePipelineFn
System.BooleansendWithoutRead
System.Stringoperation
Type Parameters​
  • T

SendWithoutRead(Byte[][])​

View Source​
Declaration
protected void SendWithoutRead(params byte[][] cmdWithBinaryArgs)
Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectSuccess(Byte[][])​

View Source​
Declaration
protected void SendExpectSuccess(params byte[][] cmdWithBinaryArgs)
Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectLong(Byte[][])​

View Source​
Declaration
protected long SendExpectLong(params byte[][] cmdWithBinaryArgs)
Returns​

System.Int64

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectData(Byte[][])​

View Source​
Declaration
protected byte[] SendExpectData(params byte[][] cmdWithBinaryArgs)
Returns​

System.Byte[]

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectDouble(Byte[][])​

View Source​
Declaration
protected double SendExpectDouble(params byte[][] cmdWithBinaryArgs)
Returns​

System.Double

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectCode(Byte[][])​

View Source​
Declaration
protected string SendExpectCode(params byte[][] cmdWithBinaryArgs)
Returns​

System.String

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectMultiData(Byte[][])​

View Source​
Declaration
protected byte[][] SendExpectMultiData(params byte[][] cmdWithBinaryArgs)
Returns​

System.Byte[][]

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectDeeplyNestedMultiData(Byte[][])​

View Source​
Declaration
protected object[] SendExpectDeeplyNestedMultiData(params byte[][] cmdWithBinaryArgs)
Returns​

System.Object[]

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectComplexResponse(Byte[][])​

View Source​
Declaration
protected RedisData SendExpectComplexResponse(params byte[][] cmdWithBinaryArgs)
Returns​

ServiceStack.Redis.RedisData

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectStringDictionaryList(Byte[][])​

View Source​
Declaration
protected List<Dictionary<string, string>> SendExpectStringDictionaryList(params byte[][] cmdWithBinaryArgs)
Returns​

System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectString(Byte[][])​

View Source​
Declaration
protected string SendExpectString(params byte[][] cmdWithBinaryArgs)
Returns​

System.String

Parameters​
TypeName
System.Byte[][]cmdWithBinaryArgs

Log(String, Object[])​

View Source​
Declaration
protected void Log(string fmt, params object[] args)
Parameters​
TypeName
System.Stringfmt
System.Object[]args

CmdLog(Byte[][])​

View Source​
Declaration
protected void CmdLog(byte[][] args)
Parameters​
TypeName
System.Byte[][]args

ExpectSuccessFn()​

View Source​
Declaration
protected long ExpectSuccessFn()
Returns​

System.Int64

ExpectSuccess()​

View Source​
Declaration
protected void ExpectSuccess()

ReadLong()​

View Source​
Declaration
public long ReadLong()
Returns​

System.Int64

ReadDouble()​

View Source​
Declaration
public double ReadDouble()
Returns​

System.Double

ParseDouble(Byte[])​

View Source​
Declaration
public static double ParseDouble(byte[] doubleBytes)
Returns​

System.Double

Parameters​
TypeName
System.Byte[]doubleBytes

ConvertToBytes(String[])​

View Source​
Declaration
protected byte[][] ConvertToBytes(string[] keys)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]keys

MergeAndConvertToBytes(String[], String[])​

View Source​
Declaration
protected byte[][] MergeAndConvertToBytes(string[] keys, string[] args)
Returns​

System.Byte[][]

Parameters​
TypeName
System.String[]keys
System.String[]args

EvalInt(String, Int32, Byte[][])​

View Source​
Declaration
public long EvalInt(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns​

System.Int64

Parameters​
TypeName
System.StringluaBody
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalShaInt(String, Int32, Byte[][])​

View Source​
Declaration
public long EvalShaInt(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns​

System.Int64

Parameters​
TypeName
System.Stringsha1
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalStr(String, Int32, Byte[][])​

View Source​
Declaration
public string EvalStr(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns​

System.String

Parameters​
TypeName
System.StringluaBody
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalShaStr(String, Int32, Byte[][])​

View Source​
Declaration
public string EvalShaStr(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns​

System.String

Parameters​
TypeName
System.Stringsha1
System.Int32numberKeysInArgs
System.Byte[][]keys

Eval(String, Int32, Byte[][])​

View Source​
Declaration
public byte[][] Eval(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns​

System.Byte[][]

Parameters​
TypeName
System.StringluaBody
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalSha(String, Int32, Byte[][])​

View Source​
Declaration
public byte[][] EvalSha(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns​

System.Byte[][]

Parameters​
TypeName
System.Stringsha1
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalCommand(String, Int32, Byte[][])​

View Source​
Declaration
public RedisData EvalCommand(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns​

ServiceStack.Redis.RedisData

Parameters​
TypeName
System.StringluaBody
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalShaCommand(String, Int32, Byte[][])​

View Source​
Declaration
public RedisData EvalShaCommand(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns​

ServiceStack.Redis.RedisData

Parameters​
TypeName
System.Stringsha1
System.Int32numberKeysInArgs
System.Byte[][]keys

CalculateSha1(String)​

View Source​
Declaration
public string CalculateSha1(string luaBody)
Returns​

System.String

Parameters​
TypeName
System.StringluaBody

ScriptLoad(String)​

View Source​
Declaration
public byte[] ScriptLoad(string luaBody)
Returns​

System.Byte[]

Parameters​
TypeName
System.StringluaBody

ScriptExists(Byte[][])​

View Source​
Declaration
public byte[][] ScriptExists(params byte[][] sha1Refs)
Returns​

System.Byte[][]

Parameters​
TypeName
System.Byte[][]sha1Refs

ScriptFlush()​

View Source​
Declaration
public void ScriptFlush()

ScriptKill()​

View Source​
Declaration
public void ScriptKill()

Implements​