Skip to main content

IRedisNativeClient

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisNativeClient : IDisposable

Properties

Info

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

Db

View Source
Declaration
long Db { get; set; }

DbSize

View Source
Declaration
long DbSize { get; }

LastSave

View Source
Declaration
DateTime LastSave { get; }

Methods

Save()

View Source
Declaration
void Save()

BgSave()

View Source
Declaration
void BgSave()

Shutdown()

View Source
Declaration
void Shutdown()

BgRewriteAof()

View Source
Declaration
void BgRewriteAof()

Quit()

View Source
Declaration
void Quit()

FlushDb()

View Source
Declaration
void FlushDb()

FlushAll()

View Source
Declaration
void FlushAll()

Ping()

View Source
Declaration
bool Ping()
Returns

System.Boolean

Echo(String)

View Source
Declaration
string Echo(string text)
Returns

System.String

Parameters
TypeName
System.Stringtext

SlaveOf(String, Int32)

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

SlaveOfNoOne()

View Source
Declaration
void SlaveOfNoOne()

ConfigGet(String)

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

System.Byte[][]

Parameters
TypeName
System.Stringpattern

ConfigSet(String, Byte[])

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

ConfigResetStat()

View Source
Declaration
void ConfigResetStat()

ConfigRewrite()

View Source
Declaration
void ConfigRewrite()

Time()

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

System.Byte[][]

DebugSegfault()

View Source
Declaration
void DebugSegfault()

Dump(String)

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

System.Byte[]

Parameters
TypeName
System.Stringkey

Restore(String, Int64, Byte[])

View Source
Declaration
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
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
bool Move(string key, int db)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int32db

ObjectIdleTime(String)

View Source
Declaration
long ObjectIdleTime(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

Role()

View Source
Declaration
RedisText Role()
Returns

ServiceStack.Redis.RedisText

RawCommand(Object[])

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

ServiceStack.Redis.RedisData

Parameters
TypeName
System.Object[]cmdWithArgs

RawCommand(Byte[][])

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

ServiceStack.Redis.RedisData

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

ClientGetName()

View Source
Declaration
string ClientGetName()
Returns

System.String

ClientSetName(String)

View Source
Declaration
void ClientSetName(string client)
Parameters
TypeName
System.Stringclient

ClientKill(String)

View Source
Declaration
void ClientKill(string host)
Parameters
TypeName
System.Stringhost

ClientKill(String, String, String, String)

View Source
Declaration
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

ClientList()

View Source
Declaration
byte[] ClientList()
Returns

System.Byte[]

ClientPause(Int32)

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

Keys(String)

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

System.Byte[][]

Parameters
TypeName
System.Stringpattern

Type(String)

View Source
Declaration
string Type(string key)
Returns

System.String

Parameters
TypeName
System.Stringkey

Exists(String)

View Source
Declaration
long Exists(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

StrLen(String)

View Source
Declaration
long StrLen(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

Set(String, Byte[])

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

SetEx(String, Int32, Byte[])

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

Persist(String)

View Source
Declaration
bool Persist(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

PSetEx(String, Int64, Byte[])

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

SetNX(String, Byte[])

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

System.Int64

Parameters
TypeName
System.Stringkey
System.Byte[]value

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

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

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

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

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

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

System.Boolean

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

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

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

System.Boolean

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

Get(String)

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

System.Byte[]

Parameters
TypeName
System.Stringkey

GetSet(String, Byte[])

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

System.Byte[]

Parameters
TypeName
System.Stringkey
System.Byte[]value

MGet(Byte[][])

View Source
Declaration
byte[][] MGet(params byte[][] keysAndArgs)
Returns

System.Byte[][]

Parameters
TypeName
System.Byte[][]keysAndArgs

MGet(String[])

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

System.Byte[][]

Parameters
TypeName
System.String[]keys

Del(String)

View Source
Declaration
long Del(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

Del(String[])

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

System.Int64

Parameters
TypeName
System.String[]keys

Incr(String)

View Source
Declaration
long Incr(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

IncrBy(String, Int32)

View Source
Declaration
long IncrBy(string key, int incrBy)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32incrBy

IncrByFloat(String, Double)

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

System.Double

Parameters
TypeName
System.Stringkey
System.DoubleincrBy

Decr(String)

View Source
Declaration
long Decr(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

DecrBy(String, Int32)

View Source
Declaration
long DecrBy(string key, int decrBy)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32decrBy

Append(String, Byte[])

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

System.Int64

Parameters
TypeName
System.Stringkey
System.Byte[]value

GetRange(String, Int32, Int32)

View Source
Declaration
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
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
long GetBit(string key, int offset)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32offset

SetBit(String, Int32, Int32)

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

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32offset
System.Int32value

RandomKey()

View Source
Declaration
string RandomKey()
Returns

System.String

Rename(String, String)

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

RenameNx(String, String)

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

System.Boolean

Parameters
TypeName
System.StringoldKeyName
System.StringnewKeyName

Expire(String, Int32)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int32seconds

PExpire(String, Int64)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int64ttlMs

ExpireAt(String, Int64)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int64unixTime

PExpireAt(String, Int64)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int64unixTimeMs

Ttl(String)

View Source
Declaration
long Ttl(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

PTtl(String)

View Source
Declaration
long PTtl(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

Scan(UInt64, Int32, String)

View Source
Declaration
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
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
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
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
bool PfAdd(string key, params byte[][] elements)
Returns

System.Boolean

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

PfCount(String)

View Source
Declaration
long PfCount(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

PfMerge(String, String[])

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

Sort(String, SortOptions)

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

System.Byte[][]

Parameters
TypeName
System.StringlistOrSetId
ServiceStack.Redis.SortOptionssortOptions

LRange(String, Int32, Int32)

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

System.Byte[][]

Parameters
TypeName
System.StringlistId
System.Int32startingFrom
System.Int32endingAt

RPush(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[]value

RPushX(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[]value

LPush(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[]value

LPushX(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[]value

LTrim(String, Int32, Int32)

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

LRem(String, Int32, Byte[])

View Source
Declaration
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
long LLen(string listId)
Returns

System.Int64

Parameters
TypeName
System.StringlistId

LIndex(String, Int32)

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

System.Byte[]

Parameters
TypeName
System.StringlistId
System.Int32listIndex

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

View Source
Declaration
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
void LSet(string listId, int listIndex, byte[] value)
Parameters
TypeName
System.StringlistId
System.Int32listIndex
System.Byte[]value

LPop(String)

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

System.Byte[]

Parameters
TypeName
System.StringlistId

RPop(String)

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

System.Byte[]

Parameters
TypeName
System.StringlistId

BLPop(String, Int32)

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

System.Byte[][]

Parameters
TypeName
System.StringlistId
System.Int32timeOutSecs

BLPop(String[], Int32)

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

System.Byte[][]

Parameters
TypeName
System.String[]listIds
System.Int32timeOutSecs

BLPopValue(String, Int32)

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

System.Byte[]

Parameters
TypeName
System.StringlistId
System.Int32timeOutSecs

BLPopValue(String[], Int32)

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

System.Byte[][]

Parameters
TypeName
System.String[]listIds
System.Int32timeOutSecs

BRPop(String, Int32)

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

System.Byte[][]

Parameters
TypeName
System.StringlistId
System.Int32timeOutSecs

BRPop(String[], Int32)

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

System.Byte[][]

Parameters
TypeName
System.String[]listIds
System.Int32timeOutSecs

RPopLPush(String, String)

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

System.Byte[]

Parameters
TypeName
System.StringfromListId
System.StringtoListId

BRPopValue(String, Int32)

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

System.Byte[]

Parameters
TypeName
System.StringlistId
System.Int32timeOutSecs

BRPopValue(String[], Int32)

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

System.Byte[][]

Parameters
TypeName
System.String[]listIds
System.Int32timeOutSecs

BRPopLPush(String, String, Int32)

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

System.Byte[]

Parameters
TypeName
System.StringfromListId
System.StringtoListId
System.Int32timeOutSecs

SMembers(String)

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

System.Byte[][]

Parameters
TypeName
System.StringsetId

SAdd(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

SAdd(String, Byte[][])

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

System.Int64

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

SRem(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

SPop(String)

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

System.Byte[]

Parameters
TypeName
System.StringsetId

SPop(String, Int32)

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

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int32count

SMove(String, String, Byte[])

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

SCard(String)

View Source
Declaration
long SCard(string setId)
Returns

System.Int64

Parameters
TypeName
System.StringsetId

SIsMember(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

SInter(String[])

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

System.Byte[][]

Parameters
TypeName
System.String[]setIds

SInterStore(String, String[])

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

SUnion(String[])

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

System.Byte[][]

Parameters
TypeName
System.String[]setIds

SUnionStore(String, String[])

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

SDiff(String, String[])

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

System.Byte[][]

Parameters
TypeName
System.StringfromSetId
System.String[]withSetIds

SDiffStore(String, String, String[])

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

SRandMember(String)

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

System.Byte[]

Parameters
TypeName
System.StringsetId

ZAdd(String, Double, Byte[])

View Source
Declaration
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
long ZAdd(string setId, long score, byte[] value)
Returns

System.Int64

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

ZRem(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

ZRem(String, Byte[][])

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

System.Int64

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

ZIncrBy(String, Double, Byte[])

View Source
Declaration
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
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
long ZRank(string setId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

ZRevRank(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

ZRange(String, Int32, Int32)

View Source
Declaration
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
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
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
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
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
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
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
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
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
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
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
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
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
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
long ZRemRangeByScore(string setId, long fromScore, long toScore)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

ZCard(String)

View Source
Declaration
long ZCard(string setId)
Returns

System.Int64

Parameters
TypeName
System.StringsetId

ZScore(String, Byte[])

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

System.Double

Parameters
TypeName
System.StringsetId
System.Byte[]value

ZUnionStore(String, String[])

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

System.Int64

Parameters
TypeName
System.StringintoSetId
System.String[]setIds

ZInterStore(String, String[])

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

System.Int64

Parameters
TypeName
System.StringintoSetId
System.String[]setIds

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

View Source
Declaration
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
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
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
long HSet(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
void HMSet(string hashId, byte[][] keys, byte[][] values)
Parameters
TypeName
System.StringhashId
System.Byte[][]keys
System.Byte[][]values

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

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

System.Int64

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

HIncrby(String, Byte[], Int32)

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

System.Int64

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

HIncrbyFloat(String, Byte[], Double)

View Source
Declaration
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
byte[] HGet(string hashId, byte[] key)
Returns

System.Byte[]

Parameters
TypeName
System.StringhashId
System.Byte[]key

HMGet(String, Byte[][])

View Source
Declaration
byte[][] HMGet(string hashId, params byte[][] keysAndArgs)
Returns

System.Byte[][]

Parameters
TypeName
System.StringhashId
System.Byte[][]keysAndArgs

HDel(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringhashId
System.Byte[]key

HExists(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringhashId
System.Byte[]key

HLen(String)

View Source
Declaration
long HLen(string hashId)
Returns

System.Int64

Parameters
TypeName
System.StringhashId

HKeys(String)

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

System.Byte[][]

Parameters
TypeName
System.StringhashId

HVals(String)

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

System.Byte[][]

Parameters
TypeName
System.StringhashId

HGetAll(String)

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

System.Byte[][]

Parameters
TypeName
System.StringhashId

GeoAdd(String, Double, Double, String)

View Source
Declaration
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
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
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
string[] GeoHash(string key, params string[] members)
Returns

System.String[]

Parameters
TypeName
System.Stringkey
System.String[]members

GeoPos(String, String[])

View Source
Declaration
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
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
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

Watch(String[])

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

UnWatch()

View Source
Declaration
void UnWatch()

Publish(String, Byte[])

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

System.Int64

Parameters
TypeName
System.StringtoChannel
System.Byte[]message

Subscribe(String[])

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

System.Byte[][]

Parameters
TypeName
System.String[]toChannels

UnSubscribe(String[])

View Source
Declaration
byte[][] UnSubscribe(params string[] toChannels)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]toChannels

PSubscribe(String[])

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

System.Byte[][]

Parameters
TypeName
System.String[]toChannelsMatchingPatterns

PUnSubscribe(String[])

View Source
Declaration
byte[][] PUnSubscribe(params string[] toChannelsMatchingPatterns)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]toChannelsMatchingPatterns

ReceiveMessages()

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

System.Byte[][]

CreateSubscription()

View Source
Declaration
IRedisSubscription CreateSubscription()
Returns

ServiceStack.Redis.IRedisSubscription

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

View Source
Declaration
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
RedisData EvalShaCommand(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns

ServiceStack.Redis.RedisData

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

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

View Source
Declaration
byte[][] Eval(string luaBody, int numberOfKeys, params byte[][] keysAndArgs)
Returns

System.Byte[][]

Parameters
TypeName
System.StringluaBody
System.Int32numberOfKeys
System.Byte[][]keysAndArgs

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

View Source
Declaration
byte[][] EvalSha(string sha1, int numberOfKeys, params byte[][] keysAndArgs)
Returns

System.Byte[][]

Parameters
TypeName
System.Stringsha1
System.Int32numberOfKeys
System.Byte[][]keysAndArgs

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

View Source
Declaration
long EvalInt(string luaBody, int numberOfKeys, params byte[][] keysAndArgs)
Returns

System.Int64

Parameters
TypeName
System.StringluaBody
System.Int32numberOfKeys
System.Byte[][]keysAndArgs

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

View Source
Declaration
long EvalShaInt(string sha1, int numberOfKeys, params byte[][] keysAndArgs)
Returns

System.Int64

Parameters
TypeName
System.Stringsha1
System.Int32numberOfKeys
System.Byte[][]keysAndArgs

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

View Source
Declaration
string EvalStr(string luaBody, int numberOfKeys, params byte[][] keysAndArgs)
Returns

System.String

Parameters
TypeName
System.StringluaBody
System.Int32numberOfKeys
System.Byte[][]keysAndArgs

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

View Source
Declaration
string EvalShaStr(string sha1, int numberOfKeys, params byte[][] keysAndArgs)
Returns

System.String

Parameters
TypeName
System.Stringsha1
System.Int32numberOfKeys
System.Byte[][]keysAndArgs

CalculateSha1(String)

View Source
Declaration
string CalculateSha1(string luaBody)
Returns

System.String

Parameters
TypeName
System.StringluaBody

ScriptExists(Byte[][])

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

System.Byte[][]

Parameters
TypeName
System.Byte[][]sha1Refs

ScriptFlush()

View Source
Declaration
void ScriptFlush()

ScriptKill()

View Source
Declaration
void ScriptKill()

ScriptLoad(String)

View Source
Declaration
byte[] ScriptLoad(string body)
Returns

System.Byte[]

Parameters
TypeName
System.Stringbody