IRedisNativeClient
Assembly: ServiceStack.Interfaces.dll
View Source
public interface IRedisNativeClient : IDisposable
Properties
Info
View Source
Dictionary<string, string> Info { get; }
Db
View Source
long Db { get; set; }
DbSize
View Source
long DbSize { get; }
LastSave
View Source
DateTime LastSave { get; }
Methods
Save()
View Source
void Save()
BgSave()
View Source
void BgSave()
Shutdown()
View Source
void Shutdown()
BgRewriteAof()
View Source
void BgRewriteAof()
Quit()
View Source
void Quit()
FlushDb()
View Source
void FlushDb()
FlushAll()
View Source
void FlushAll()
Ping()
View Source
bool Ping()
Returns
System.Boolean
Echo(String)
View Source
string Echo(string text)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | text |
SlaveOf(String, Int32)
View Source
void SlaveOf(string hostname, int port)
Parameters
Type | Name |
---|---|
System.String | hostname |
System.Int32 | port |
SlaveOfNoOne()
View Source
void SlaveOfNoOne()
ConfigGet(String)
View Source
byte[][] ConfigGet(string pattern)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | pattern |
ConfigSet(String, Byte[])
View Source
void ConfigSet(string item, byte[] value)
Parameters
Type | Name |
---|---|
System.String | item |
System.Byte[] | value |
ConfigResetStat()
View Source
void ConfigResetStat()
ConfigRewrite()
View Source
void ConfigRewrite()
Time()
View Source
byte[][] Time()
Returns
System.Byte[][]
DebugSegfault()
View Source
void DebugSegfault()
Dump(String)
View Source
byte[] Dump(string key)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | key |
Restore(String, Int64, Byte[])
View Source
byte[] Restore(string key, long expireMs, byte[] dumpValue)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | key |
System.Int64 | expireMs |
System.Byte[] | dumpValue |
Migrate(String, Int32, String, Int32, Int64)
View Source
void Migrate(string host, int port, string key, int destinationDb, long timeoutMs)
Parameters
Type | Name |
---|---|
System.String | host |
System.Int32 | port |
System.String | key |
System.Int32 | destinationDb |
System.Int64 | timeoutMs |
Move(String, Int32)
View Source
bool Move(string key, int db)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | db |
ObjectIdleTime(String)
View Source
long ObjectIdleTime(string key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
Role()
View Source
RedisText Role()
Returns
RawCommand(Object[])
View Source
RedisData RawCommand(params object[] cmdWithArgs)
Returns
Parameters
Type | Name |
---|---|
System.Object[] | cmdWithArgs |
RawCommand(Byte[][])
View Source
RedisData RawCommand(params byte[][] cmdWithBinaryArgs)
Returns
Parameters
Type | Name |
---|---|
System.Byte[][] | cmdWithBinaryArgs |
ClientGetName()
View Source
string ClientGetName()
Returns
System.String
ClientSetName(String)
View Source
void ClientSetName(string client)
Parameters
Type | Name |
---|---|
System.String | client |
ClientKill(String)
View Source
void ClientKill(string host)
Parameters
Type | Name |
---|---|
System.String | host |
ClientKill(String, String, String, String)
View Source
long ClientKill(string addr = null, string id = null, string type = null, string skipMe = null)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | addr |
System.String | id |
System.String | type |
System.String | skipMe |
ClientList()
View Source
byte[] ClientList()
Returns
System.Byte[]
ClientPause(Int32)
View Source
void ClientPause(int timeOutMs)
Parameters
Type | Name |
---|---|
System.Int32 | timeOutMs |
Keys(String)
View Source
byte[][] Keys(string pattern)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | pattern |
Type(String)
View Source
string Type(string key)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
Exists(String)
View Source
long Exists(string key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
StrLen(String)
View Source
long StrLen(string key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
Set(String, Byte[])
View Source
void Set(string key, byte[] value)
Parameters
Type | Name |
---|---|
System.String | key |
System.Byte[] | value |
SetEx(String, Int32, Byte[])
View Source
void SetEx(string key, int expireInSeconds, byte[] value)
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | expireInSeconds |
System.Byte[] | value |
Persist(String)
View Source
bool Persist(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
PSetEx(String, Int64, Byte[])
View Source
void PSetEx(string key, long expireInMs, byte[] value)
Parameters
Type | Name |
---|---|
System.String | key |
System.Int64 | expireInMs |
System.Byte[] | value |
SetNX(String, Byte[])
View Source
long SetNX(string key, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
System.Byte[] | value |
MSet(Byte[][], Byte[][])
View Source
void MSet(byte[][] keys, byte[][] values)
Parameters
Type | Name |
---|---|
System.Byte[][] | keys |
System.Byte[][] | values |
MSet(String[], Byte[][])
View Source
void MSet(string[] keys, byte[][] values)
Parameters
Type | Name |
---|---|
System.String[] | keys |
System.Byte[][] | values |
MSetNx(Byte[][], Byte[][])
View Source
bool MSetNx(byte[][] keys, byte[][] values)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Byte[][] | keys |
System.Byte[][] | values |
MSetNx(String[], Byte[][])
View Source
bool MSetNx(string[] keys, byte[][] values)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String[] | keys |
System.Byte[][] | values |
Get(String)
View Source
byte[] Get(string key)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | key |
GetSet(String, Byte[])
View Source
byte[] GetSet(string key, byte[] value)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | key |
System.Byte[] | value |
MGet(Byte[][])
View Source
byte[][] MGet(params byte[][] keysAndArgs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.Byte[][] | keysAndArgs |
MGet(String[])
View Source
byte[][] MGet(params string[] keys)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | keys |
Del(String)
View Source
long Del(string key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
Del(String[])
View Source
long Del(params string[] keys)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String[] | keys |
Incr(String)
View Source
long Incr(string key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
IncrBy(String, Int32)
View Source
long IncrBy(string key, int incrBy)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | incrBy |
IncrByFloat(String, Double)
View Source
double IncrByFloat(string key, double incrBy)
Returns
System.Double
Parameters
Type | Name |
---|---|
System.String | key |
System.Double | incrBy |
Decr(String)
View Source
long Decr(string key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
DecrBy(String, Int32)
View Source
long DecrBy(string key, int decrBy)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | decrBy |
Append(String, Byte[])
View Source
long Append(string key, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
System.Byte[] | value |
GetRange(String, Int32, Int32)
View Source
byte[] GetRange(string key, int fromIndex, int toIndex)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | fromIndex |
System.Int32 | toIndex |
SetRange(String, Int32, Byte[])
View Source
long SetRange(string key, int offset, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | offset |
System.Byte[] | value |
GetBit(String, Int32)
View Source
long GetBit(string key, int offset)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | offset |
SetBit(String, Int32, Int32)
View Source
long SetBit(string key, int offset, int value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | offset |
System.Int32 | value |
RandomKey()
View Source
string RandomKey()
Returns
System.String
Rename(String, String)
View Source
void Rename(string oldKeyName, string newKeyName)
Parameters
Type | Name |
---|---|
System.String | oldKeyName |
System.String | newKeyName |
RenameNx(String, String)
View Source
bool RenameNx(string oldKeyName, string newKeyName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | oldKeyName |
System.String | newKeyName |
Expire(String, Int32)
View Source
bool Expire(string key, int seconds)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | seconds |
PExpire(String, Int64)
View Source
bool PExpire(string key, long ttlMs)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.Int64 | ttlMs |
ExpireAt(String, Int64)
View Source
bool ExpireAt(string key, long unixTime)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.Int64 | unixTime |
PExpireAt(String, Int64)
View Source
bool PExpireAt(string key, long unixTimeMs)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.Int64 | unixTimeMs |
Ttl(String)
View Source
long Ttl(string key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
PTtl(String)
View Source
long PTtl(string key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
Scan(UInt64, Int32, String)
View Source
ScanResult Scan(ulong cursor, int count = 10, string match = null)
Returns
Parameters
Type | Name |
---|---|
System.UInt64 | cursor |
System.Int32 | count |
System.String | match |
SScan(String, UInt64, Int32, String)
View Source
ScanResult SScan(string setId, ulong cursor, int count = 10, string match = null)
Returns
Parameters
Type | Name |
---|---|
System.String | setId |
System.UInt64 | cursor |
System.Int32 | count |
System.String | match |
ZScan(String, UInt64, Int32, String)
View Source
ScanResult ZScan(string setId, ulong cursor, int count = 10, string match = null)
Returns
Parameters
Type | Name |
---|---|
System.String | setId |
System.UInt64 | cursor |
System.Int32 | count |
System.String | match |
HScan(String, UInt64, Int32, String)
View Source
ScanResult HScan(string hashId, ulong cursor, int count = 10, string match = null)
Returns
Parameters
Type | Name |
---|---|
System.String | hashId |
System.UInt64 | cursor |
System.Int32 | count |
System.String | match |
PfAdd(String, Byte[][])
View Source
bool PfAdd(string key, params byte[][] elements)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.Byte[][] | elements |
PfCount(String)
View Source
long PfCount(string key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
PfMerge(String, String[])
View Source
void PfMerge(string toKeyId, params string[] fromKeys)
Parameters
Type | Name |
---|---|
System.String | toKeyId |
System.String[] | fromKeys |
Sort(String, SortOptions)
View Source
byte[][] Sort(string listOrSetId, SortOptions sortOptions)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | listOrSetId |
ServiceStack.Redis.SortOptions | sortOptions |
LRange(String, Int32, Int32)
View Source
byte[][] LRange(string listId, int startingFrom, int endingAt)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | listId |
System.Int32 | startingFrom |
System.Int32 | endingAt |
RPush(String, Byte[])
View Source
long RPush(string listId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | listId |
System.Byte[] | value |
RPushX(String, Byte[])
View Source
long RPushX(string listId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | listId |
System.Byte[] | value |
LPush(String, Byte[])
View Source
long LPush(string listId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | listId |
System.Byte[] | value |
LPushX(String, Byte[])
View Source
long LPushX(string listId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | listId |
System.Byte[] | value |
LTrim(String, Int32, Int32)
View Source
void LTrim(string listId, int keepStartingFrom, int keepEndingAt)
Parameters
Type | Name |
---|---|
System.String | listId |
System.Int32 | keepStartingFrom |
System.Int32 | keepEndingAt |
LRem(String, Int32, Byte[])
View Source
long LRem(string listId, int removeNoOfMatches, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | listId |
System.Int32 | removeNoOfMatches |
System.Byte[] | value |
LLen(String)
View Source
long LLen(string listId)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | listId |
LIndex(String, Int32)
View Source
byte[] LIndex(string listId, int listIndex)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | listId |
System.Int32 | listIndex |
LInsert(String, Boolean, Byte[], Byte[])
View Source
void LInsert(string listId, bool insertBefore, byte[] pivot, byte[] value)
Parameters
Type | Name |
---|---|
System.String | listId |
System.Boolean | insertBefore |
System.Byte[] | pivot |
System.Byte[] | value |
LSet(String, Int32, Byte[])
View Source
void LSet(string listId, int listIndex, byte[] value)
Parameters
Type | Name |
---|---|
System.String | listId |
System.Int32 | listIndex |
System.Byte[] | value |
LPop(String)
View Source
byte[] LPop(string listId)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | listId |
RPop(String)
View Source
byte[] RPop(string listId)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | listId |
BLPop(String, Int32)
View Source
byte[][] BLPop(string listId, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | listId |
System.Int32 | timeOutSecs |
BLPop(String[], Int32)
View Source
byte[][] BLPop(string[] listIds, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | listIds |
System.Int32 | timeOutSecs |
BLPopValue(String, Int32)
View Source
byte[] BLPopValue(string listId, int timeOutSecs)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | listId |
System.Int32 | timeOutSecs |
BLPopValue(String[], Int32)
View Source
byte[][] BLPopValue(string[] listIds, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | listIds |
System.Int32 | timeOutSecs |
BRPop(String, Int32)
View Source
byte[][] BRPop(string listId, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | listId |
System.Int32 | timeOutSecs |
BRPop(String[], Int32)
View Source
byte[][] BRPop(string[] listIds, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | listIds |
System.Int32 | timeOutSecs |
RPopLPush(String, String)
View Source
byte[] RPopLPush(string fromListId, string toListId)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | fromListId |
System.String | toListId |
BRPopValue(String, Int32)
View Source
byte[] BRPopValue(string listId, int timeOutSecs)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | listId |
System.Int32 | timeOutSecs |
BRPopValue(String[], Int32)
View Source
byte[][] BRPopValue(string[] listIds, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | listIds |
System.Int32 | timeOutSecs |
BRPopLPush(String, String, Int32)
View Source
byte[] BRPopLPush(string fromListId, string toListId, int timeOutSecs)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | fromListId |
System.String | toListId |
System.Int32 | timeOutSecs |
SMembers(String)
View Source
byte[][] SMembers(string setId)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
SAdd(String, Byte[])
View Source
long SAdd(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Byte[] | value |
SAdd(String, Byte[][])
View Source
long SAdd(string setId, byte[][] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Byte[][] | value |
SRem(String, Byte[])
View Source
long SRem(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Byte[] | value |
SPop(String)
View Source
byte[] SPop(string setId)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | setId |
SPop(String, Int32)
View Source
byte[][] SPop(string setId, int count)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int32 | count |
SMove(String, String, Byte[])
View Source
void SMove(string fromSetId, string toSetId, byte[] value)
Parameters
Type | Name |
---|---|
System.String | fromSetId |
System.String | toSetId |
System.Byte[] | value |
SCard(String)
View Source
long SCard(string setId)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
SIsMember(String, Byte[])
View Source
long SIsMember(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Byte[] | value |
SInter(String[])
View Source
byte[][] SInter(params string[] setIds)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | setIds |
SInterStore(String, String[])
View Source
void SInterStore(string intoSetId, params string[] setIds)
Parameters
Type | Name |
---|---|
System.String | intoSetId |
System.String[] | setIds |
SUnion(String[])
View Source
byte[][] SUnion(params string[] setIds)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | setIds |
SUnionStore(String, String[])
View Source
void SUnionStore(string intoSetId, params string[] setIds)
Parameters
Type | Name |
---|---|
System.String | intoSetId |
System.String[] | setIds |
SDiff(String, String[])
View Source
byte[][] SDiff(string fromSetId, params string[] withSetIds)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | fromSetId |
System.String[] | withSetIds |
SDiffStore(String, String, String[])
View Source
void SDiffStore(string intoSetId, string fromSetId, params string[] withSetIds)
Parameters
Type | Name |
---|---|
System.String | intoSetId |
System.String | fromSetId |
System.String[] | withSetIds |
SRandMember(String)
View Source
byte[] SRandMember(string setId)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | setId |
ZAdd(String, Double, Byte[])
View Source
long ZAdd(string setId, double score, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Double | score |
System.Byte[] | value |
ZAdd(String, Int64, Byte[])
View Source
long ZAdd(string setId, long score, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int64 | score |
System.Byte[] | value |
ZRem(String, Byte[])
View Source
long ZRem(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Byte[] | value |
ZRem(String, Byte[][])
View Source
long ZRem(string setId, byte[][] values)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Byte[][] | values |
ZIncrBy(String, Double, Byte[])
View Source
double ZIncrBy(string setId, double incrBy, byte[] value)
Returns
System.Double
Parameters
Type | Name |
---|---|
System.String | setId |
System.Double | incrBy |
System.Byte[] | value |
ZIncrBy(String, Int64, Byte[])
View Source
double ZIncrBy(string setId, long incrBy, byte[] value)
Returns
System.Double
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int64 | incrBy |
System.Byte[] | value |
ZRank(String, Byte[])
View Source
long ZRank(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Byte[] | value |
ZRevRank(String, Byte[])
View Source
long ZRevRank(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Byte[] | value |
ZRange(String, Int32, Int32)
View Source
byte[][] ZRange(string setId, int min, int max)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRangeWithScores(String, Int32, Int32)
View Source
byte[][] ZRangeWithScores(string setId, int min, int max)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRevRange(String, Int32, Int32)
View Source
byte[][] ZRevRange(string setId, int min, int max)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRevRangeWithScores(String, Int32, Int32)
View Source
byte[][] ZRevRangeWithScores(string setId, int min, int max)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRangeByScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
View Source
byte[][] ZRangeByScore(string setId, double min, double max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Double | min |
System.Double | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRangeByScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
View Source
byte[][] ZRangeByScore(string setId, long min, long max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int64 | min |
System.Int64 | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRangeByScoreWithScores(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
View Source
byte[][] ZRangeByScoreWithScores(string setId, double min, double max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Double | min |
System.Double | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRangeByScoreWithScores(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
View Source
byte[][] ZRangeByScoreWithScores(string setId, long min, long max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int64 | min |
System.Int64 | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRevRangeByScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
View Source
byte[][] ZRevRangeByScore(string setId, double min, double max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Double | min |
System.Double | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRevRangeByScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
View Source
byte[][] ZRevRangeByScore(string setId, long min, long max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int64 | min |
System.Int64 | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRevRangeByScoreWithScores(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
View Source
byte[][] ZRevRangeByScoreWithScores(string setId, double min, double max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Double | min |
System.Double | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRevRangeByScoreWithScores(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
View Source
byte[][] ZRevRangeByScoreWithScores(string setId, long min, long max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int64 | min |
System.Int64 | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRemRangeByRank(String, Int32, Int32)
View Source
long ZRemRangeByRank(string setId, int min, int max)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRemRangeByScore(String, Double, Double)
View Source
long ZRemRangeByScore(string setId, double fromScore, double toScore)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
ZRemRangeByScore(String, Int64, Int64)
View Source
long ZRemRangeByScore(string setId, long fromScore, long toScore)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
ZCard(String)
View Source
long ZCard(string setId)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
ZScore(String, Byte[])
View Source
double ZScore(string setId, byte[] value)
Returns
System.Double
Parameters
Type | Name |
---|---|
System.String | setId |
System.Byte[] | value |
ZUnionStore(String, String[])
View Source
long ZUnionStore(string intoSetId, params string[] setIds)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | intoSetId |
System.String[] | setIds |
ZInterStore(String, String[])
View Source
long ZInterStore(string intoSetId, params string[] setIds)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | intoSetId |
System.String[] | setIds |
ZRangeByLex(String, String, String, Nullable<Int32>, Nullable<Int32>)
View Source
byte[][] ZRangeByLex(string setId, string min, string max, int? skip = null, int? take = null)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | setId |
System.String | min |
System.String | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZLexCount(String, String, String)
View Source
long ZLexCount(string setId, string min, string max)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.String | min |
System.String | max |
ZRemRangeByLex(String, String, String)
View Source
long ZRemRangeByLex(string setId, string min, string max)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | setId |
System.String | min |
System.String | max |
HSet(String, Byte[], Byte[])
View Source
long HSet(string hashId, byte[] key, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | hashId |
System.Byte[] | key |
System.Byte[] | value |
HMSet(String, Byte[][], Byte[][])
View Source
void HMSet(string hashId, byte[][] keys, byte[][] values)
Parameters
Type | Name |
---|---|
System.String | hashId |
System.Byte[][] | keys |
System.Byte[][] | values |
HSetNX(String, Byte[], Byte[])
View Source
long HSetNX(string hashId, byte[] key, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | hashId |
System.Byte[] | key |
System.Byte[] | value |
HIncrby(String, Byte[], Int32)
View Source
long HIncrby(string hashId, byte[] key, int incrementBy)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | hashId |
System.Byte[] | key |
System.Int32 | incrementBy |
HIncrbyFloat(String, Byte[], Double)
View Source
double HIncrbyFloat(string hashId, byte[] key, double incrementBy)
Returns
System.Double
Parameters
Type | Name |
---|---|
System.String | hashId |
System.Byte[] | key |
System.Double | incrementBy |
HGet(String, Byte[])
View Source
byte[] HGet(string hashId, byte[] key)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | hashId |
System.Byte[] | key |
HMGet(String, Byte[][])
View Source
byte[][] HMGet(string hashId, params byte[][] keysAndArgs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | hashId |
System.Byte[][] | keysAndArgs |
HDel(String, Byte[])
View Source
long HDel(string hashId, byte[] key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | hashId |
System.Byte[] | key |
HExists(String, Byte[])
View Source
long HExists(string hashId, byte[] key)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | hashId |
System.Byte[] | key |
HLen(String)
View Source
long HLen(string hashId)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | hashId |
HKeys(String)
View Source
byte[][] HKeys(string hashId)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | hashId |
HVals(String)
View Source
byte[][] HVals(string hashId)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | hashId |
HGetAll(String)
View Source
byte[][] HGetAll(string hashId)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | hashId |
GeoAdd(String, Double, Double, String)
View Source
long GeoAdd(string key, double longitude, double latitude, string member)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
System.Double | longitude |
System.Double | latitude |
System.String | member |
GeoAdd(String, RedisGeo[])
View Source
long GeoAdd(string key, params RedisGeo[] geoPoints)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
ServiceStack.Redis.RedisGeo[] | geoPoints |
GeoDist(String, String, String, String)
View Source
double GeoDist(string key, string fromMember, string toMember, string unit = null)
Returns
System.Double
Parameters
Type | Name |
---|---|
System.String | key |
System.String | fromMember |
System.String | toMember |
System.String | unit |
GeoHash(String, String[])
View Source
string[] GeoHash(string key, params string[] members)
Returns
System.String[]
Parameters
Type | Name |
---|---|
System.String | key |
System.String[] | members |
GeoPos(String, String[])
View Source
List<RedisGeo> GeoPos(string key, params string[] members)
Returns
System.Collections.Generic.List<ServiceStack.Redis.RedisGeo>
Parameters
Type | Name |
---|---|
System.String | key |
System.String[] | members |
GeoRadius(String, Double, Double, Double, String, Boolean, Boolean, Boolean, Nullable<Int32>, Nullable<Boolean>)
View Source
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
Type | Name |
---|---|
System.String | key |
System.Double | longitude |
System.Double | latitude |
System.Double | radius |
System.String | unit |
System.Boolean | withCoords |
System.Boolean | withDist |
System.Boolean | withHash |
System.Nullable<System.Int32> | count |
System.Nullable<System.Boolean> | asc |
GeoRadiusByMember(String, String, Double, String, Boolean, Boolean, Boolean, Nullable<Int32>, Nullable<Boolean>)
View Source
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
Type | Name |
---|---|
System.String | key |
System.String | member |
System.Double | radius |
System.String | unit |
System.Boolean | withCoords |
System.Boolean | withDist |
System.Boolean | withHash |
System.Nullable<System.Int32> | count |
System.Nullable<System.Boolean> | asc |
Watch(String[])
View Source
void Watch(params string[] keys)
Parameters
Type | Name |
---|---|
System.String[] | keys |
UnWatch()
View Source
void UnWatch()
Publish(String, Byte[])
View Source
long Publish(string toChannel, byte[] message)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | toChannel |
System.Byte[] | message |
Subscribe(String[])
View Source
byte[][] Subscribe(params string[] toChannels)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | toChannels |
UnSubscribe(String[])
View Source
byte[][] UnSubscribe(params string[] toChannels)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | toChannels |
PSubscribe(String[])
View Source
byte[][] PSubscribe(params string[] toChannelsMatchingPatterns)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | toChannelsMatchingPatterns |
PUnSubscribe(String[])
View Source
byte[][] PUnSubscribe(params string[] toChannelsMatchingPatterns)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String[] | toChannelsMatchingPatterns |
ReceiveMessages()
View Source
byte[][] ReceiveMessages()
Returns
System.Byte[][]
CreateSubscription()
View Source
IRedisSubscription CreateSubscription()
Returns
ServiceStack.Redis.IRedisSubscription
EvalCommand(String, Int32, Byte[][])
View Source
RedisData EvalCommand(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns
Parameters
Type | Name |
---|---|
System.String | luaBody |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
EvalShaCommand(String, Int32, Byte[][])
View Source
RedisData EvalShaCommand(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns
Parameters
Type | Name |
---|---|
System.String | sha1 |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
Eval(String, Int32, Byte[][])
View Source
byte[][] Eval(string luaBody, int numberOfKeys, params byte[][] keysAndArgs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | luaBody |
System.Int32 | numberOfKeys |
System.Byte[][] | keysAndArgs |
EvalSha(String, Int32, Byte[][])
View Source
byte[][] EvalSha(string sha1, int numberOfKeys, params byte[][] keysAndArgs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.String | sha1 |
System.Int32 | numberOfKeys |
System.Byte[][] | keysAndArgs |
EvalInt(String, Int32, Byte[][])
View Source
long EvalInt(string luaBody, int numberOfKeys, params byte[][] keysAndArgs)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | luaBody |
System.Int32 | numberOfKeys |
System.Byte[][] | keysAndArgs |
EvalShaInt(String, Int32, Byte[][])
View Source
long EvalShaInt(string sha1, int numberOfKeys, params byte[][] keysAndArgs)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | sha1 |
System.Int32 | numberOfKeys |
System.Byte[][] | keysAndArgs |
EvalStr(String, Int32, Byte[][])
View Source
string EvalStr(string luaBody, int numberOfKeys, params byte[][] keysAndArgs)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | luaBody |
System.Int32 | numberOfKeys |
System.Byte[][] | keysAndArgs |
EvalShaStr(String, Int32, Byte[][])
View Source
string EvalShaStr(string sha1, int numberOfKeys, params byte[][] keysAndArgs)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | sha1 |
System.Int32 | numberOfKeys |
System.Byte[][] | keysAndArgs |
CalculateSha1(String)
View Source
string CalculateSha1(string luaBody)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | luaBody |
ScriptExists(Byte[][])
View Source
byte[][] ScriptExists(params byte[][] sha1Refs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|---|
System.Byte[][] | sha1Refs |
ScriptFlush()
View Source
void ScriptFlush()
ScriptKill()
View Source
void ScriptKill()
ScriptLoad(String)
View Source
byte[] ScriptLoad(string body)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | body |