C# Class ServiceStack.Redis.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
Inheritance: IRedisNativeClient
Exibir arquivo Open project: ServiceStack/ServiceStack.Redis Class Usage Examples

Protected Properties

Property Type Description
Bstream BufferedStream
socket Socket
sslStream SslStream

Private Properties

Property Type Description
AssertHashIdAndKey void
AssertSetIdAndValue void
Discard void
DisposeConnection void
EndPipeline void
Exec void
GetRange byte[][]
GetRangeByScore byte[][]
GetRangeByScore byte[][]
Init void
Multi void
SafeConnectionClose void
SendExpectScanResult ServiceStack.Redis.ScanResult

Public Methods

Method Description
Append ( string key, byte value ) : long
BLPop ( string listId, int timeOutSecs ) : byte[][]
BLPopValue ( string listId, int timeOutSecs ) : byte[]
BLPopValue ( string listIds, int timeOutSecs ) : byte[][]
BRPop ( string listId, int timeOutSecs ) : byte[][]
BRPopLPush ( string fromListId, string toListId, int timeOutSecs ) : byte[]
BRPopValue ( string listId, int timeOutSecs ) : byte[]
BRPopValue ( string listIds, int timeOutSecs ) : byte[][]
BgRewriteAof ( ) : void
BgSave ( ) : void
BitCount ( string key ) : long
ChangeDb ( long db ) : void
ClientGetName ( ) : string
ClientKill ( string addr = null, string id = null, string type = null, string skipMe = null ) : long
ClientKill ( string clientAddr ) : void
ClientList ( ) : byte[]
ClientPause ( int timeOutMs ) : void
ClientSetName ( string name ) : void
ConfigGet ( string pattern ) : byte[][]
ConfigResetStat ( ) : void
ConfigRewrite ( ) : void
ConfigSet ( string item, byte value ) : void
CreatePipelineCommand ( ) : RedisPipelineCommand
CreateSubscription ( ) : IRedisSubscription
DebugSegfault ( ) : void
DebugSleep ( double durationSecs ) : void
Decr ( string key ) : long
DecrBy ( string key, int count ) : long
Del ( ) : long
Del ( byte key ) : long
Del ( string key ) : long
Dispose ( ) : void
Dump ( string key ) : byte[]
Echo ( string text ) : string
Exists ( string key ) : long
Expire ( byte key, int seconds ) : bool
Expire ( string key, int seconds ) : bool
ExpireAt ( string key, long unixTime ) : bool
FlushAll ( ) : void
FlushDb ( ) : void
GeoAdd ( string key ) : long
GeoAdd ( string key, double longitude, double latitude, string member ) : long
GeoDist ( string key, string fromMember, string toMember, string unit = null ) : double
GeoHash ( string key ) : string[]
GeoPos ( string key ) : List
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 ) : List
GeoRadiusByMember ( string key, string member, double radius, string unit, bool withCoords = false, bool withDist = false, bool withHash = false, int count = null, bool asc = null ) : List
Get ( byte key ) : byte[]
Get ( string key ) : byte[]
GetBit ( string key, int offset ) : long
GetBytes ( string key ) : byte[]
GetEntryType ( string key ) : RedisKeyType
GetRange ( string key, int fromIndex, int toIndex ) : byte[]
GetSet ( string key, byte value ) : byte[]
HDel ( byte hashId, byte key ) : long
HDel ( string hashId, byte key ) : long
HExists ( string hashId, byte key ) : long
HGet ( byte hashId, byte key ) : byte[]
HGet ( string hashId, byte key ) : byte[]
HGetAll ( string hashId ) : byte[][]
HIncrby ( string hashId, byte key, int incrementBy ) : long
HIncrby ( string hashId, byte key, long incrementBy ) : long
HIncrbyFloat ( string hashId, byte key, double incrementBy ) : double
HKeys ( string hashId ) : byte[][]
HLen ( string hashId ) : long
HMGet ( string hashId ) : byte[][]
HMSet ( string hashId, byte keys, byte values ) : void
HScan ( string hashId, ulong cursor, int count = 10, string match = null ) : ServiceStack.Redis.ScanResult
HSet ( byte hashId, byte key, byte value ) : long
HSet ( string hashId, byte key, byte value ) : long
HSetNX ( string hashId, byte key, byte value ) : long
HVals ( string hashId ) : byte[][]
Incr ( string key ) : long
IncrBy ( string key, int count ) : long
IncrBy ( string key, long count ) : long
IncrByFloat ( string key, double incrBy ) : double
Keys ( string pattern ) : byte[][]
LIndex ( string listId, int listIndex ) : byte[]
LInsert ( string listId, bool insertBefore, byte pivot, byte value ) : void
LLen ( string listId ) : long
LPop ( string listId ) : byte[]
LPush ( string listId, byte value ) : long
LPushX ( string listId, byte value ) : long
LRange ( string listId, int startingFrom, int endingAt ) : byte[][]
LRem ( string listId, int removeNoOfMatches, byte value ) : long
LSet ( string listId, int listIndex, byte value ) : void
LTrim ( string listId, int keepStartingFrom, int keepEndingAt ) : void
MGet ( ) : byte[][]
MSet ( byte keys, byte values ) : void
MSet ( string keys, byte values ) : void
MSetNx ( byte keys, byte values ) : bool
MSetNx ( string keys, byte values ) : bool
Migrate ( string host, int port, string key, int destinationDb, long timeoutMs ) : void
Move ( string key, int db ) : bool
ObjectIdleTime ( string key ) : long
PExpire ( byte key, long ttlMs ) : bool
PExpire ( string key, long ttlMs ) : bool
PExpireAt ( string key, long unixTimeMs ) : bool
PSetEx ( string key, long expireInMs, byte value ) : void
PSubscribe ( ) : byte[][]
PTtl ( string key ) : long
PUnSubscribe ( ) : byte[][]
Persist ( string key ) : bool
PfAdd ( string key ) : bool
PfCount ( string key ) : long
PfMerge ( string toKeyId ) : void
Ping ( ) : bool
Publish ( string toChannel, byte message ) : long
Quit ( ) : void
RPop ( string listId ) : byte[]
RPopLPush ( string fromListId, string toListId ) : byte[]
RPush ( string listId, byte value ) : long
RPushX ( string listId, byte value ) : long
RandomKey ( ) : string
RawCommand ( ) : ServiceStack.Redis.RedisData
ReceiveMessages ( ) : byte[][]
RedisNativeClient ( ) : System
RedisNativeClient ( RedisEndpoint config ) : System
RedisNativeClient ( string connectionString ) : System
RedisNativeClient ( string host, int port ) : System
RedisNativeClient ( string host, int port, string password = null, long db = RedisConfig.DefaultDb ) : System
Rename ( string oldKeyname, string newKeyname ) : void
RenameNx ( string oldKeyname, string newKeyname ) : bool
Restore ( string key, long expireMs, byte dumpValue ) : byte[]
Role ( ) : ServiceStack.Redis.RedisText
SAdd ( string setId, byte value ) : long
SCard ( string setId ) : long
SDiff ( string fromSetId ) : byte[][]
SDiffStore ( string intoSetId, string fromSetId ) : void
SInter ( ) : byte[][]
SInterStore ( string intoSetId ) : void
SIsMember ( string setId, byte value ) : long
SMembers ( string setId ) : byte[][]
SMove ( string fromSetId, string toSetId, byte value ) : void
SPop ( string setId ) : byte[]
SPop ( string setId, int count ) : byte[][]
SRandMember ( string setId ) : byte[]
SRandMember ( string setId, int count ) : byte[][]
SRem ( string setId, byte value ) : long
SScan ( string setId, ulong cursor, int count = 10, string match = null ) : ServiceStack.Redis.ScanResult
SUnion ( ) : byte[][]
SUnionStore ( string intoSetId ) : void
Save ( ) : void
SaveAsync ( ) : void
Scan ( ulong cursor, int count = 10, string match = null ) : ServiceStack.Redis.ScanResult
SentinelFailover ( string masterName ) : void
SentinelGetMasterAddrByName ( string masterName ) : List
SentinelMaster ( string masterName ) : string>.Dictionary
SentinelMasters ( ) : string>>.List
SentinelSentinels ( string masterName ) : string>>.List
SentinelSlaves ( string masterName ) : string>>.List
Set ( string key, byte value, bool exists, int expirySeconds, long expiryMs ) : bool
Set ( byte key, byte value, int expirySeconds, long expiryMs ) : void
Set ( string key, byte value ) : void
Set ( string key, byte value, int expirySeconds, long expiryMs ) : void
SetBit ( string key, int offset, int value ) : long
SetEx ( byte key, int expireInSeconds, byte value ) : void
SetEx ( string key, int expireInSeconds, byte value ) : void
SetNX ( string key, byte value ) : long
SetRange ( string key, int offset, byte value ) : long
Shutdown ( ) : void
ShutdownNoSave ( ) : void
SlaveOf ( string hostname, int port ) : void
SlaveOfNoOne ( ) : void
Slowlog ( int top ) : object[]
SlowlogReset ( ) : void
Sort ( string listOrSetId, ServiceStack.Redis.SortOptions sortOptions ) : byte[][]
StrLen ( string key ) : long
Subscribe ( ) : byte[][]
Time ( ) : byte[][]
Ttl ( string key ) : long
Type ( string key ) : string
UnSubscribe ( ) : byte[][]
UnWatch ( ) : void
Watch ( ) : void
ZAdd ( string setId, double>.List pairs ) : long
ZAdd ( string setId, long>.List pairs ) : long
ZAdd ( string setId, double score, byte value ) : long
ZAdd ( string setId, long score, byte value ) : long
ZCard ( string setId ) : long
ZCount ( string setId, double min, double max ) : long
ZCount ( string setId, long min, long max ) : long
ZIncrBy ( string setId, double incrBy, byte value ) : double
ZIncrBy ( string setId, long incrBy, byte value ) : double
ZInterStore ( string intoSetId ) : long
ZInterStore ( string intoSetId, string setIds, string args ) : long
ZLexCount ( string setId, string min, string max ) : long
ZRange ( string setId, int min, int max ) : byte[][]
ZRangeByLex ( string setId, string min, string max, int skip = null, int take = null ) : byte[][]
ZRangeByScore ( string setId, double min, double max, int skip, int take ) : byte[][]
ZRangeByScore ( string setId, long min, long max, int skip, int take ) : byte[][]
ZRangeByScoreWithScores ( string setId, double min, double max, int skip, int take ) : byte[][]
ZRangeByScoreWithScores ( string setId, long min, long max, int skip, int take ) : byte[][]
ZRangeWithScores ( string setId, int min, int max ) : byte[][]
ZRank ( string setId, byte value ) : long
ZRem ( string setId, byte value ) : long
ZRemRangeByLex ( string setId, string min, string max ) : long
ZRemRangeByRank ( string setId, int min, int max ) : long
ZRemRangeByScore ( string setId, double fromScore, double toScore ) : long
ZRemRangeByScore ( string setId, long fromScore, long toScore ) : long
ZRevRange ( string setId, int min, int max ) : byte[][]
ZRevRangeByScore ( string setId, double min, double max, int skip, int take ) : byte[][]
ZRevRangeByScore ( string setId, long min, long max, int skip, int take ) : byte[][]
ZRevRangeByScoreWithScores ( string setId, double min, double max, int skip, int take ) : byte[][]
ZRevRangeByScoreWithScores ( string setId, long min, long max, int skip, int take ) : byte[][]
ZRevRangeWithScores ( string setId, int min, int max ) : byte[][]
ZRevRank ( string setId, byte value ) : long
ZScan ( string setId, ulong cursor, int count = 10, string match = null ) : ScanResult
ZScore ( string setId, byte value ) : double
ZUnionStore ( string intoSetId ) : long
ZUnionStore ( string intoSetId, string setIds, string args ) : long

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
AssertHashIdAndKey ( object hashId, byte key ) : void
AssertSetIdAndValue ( string setId, byte value ) : void
Discard ( ) : void
DisposeConnection ( ) : void
EndPipeline ( ) : void
Exec ( ) : void

Requires custom result parsing

GetRange ( byte commandBytes, string setId, int min, int max, bool withScores ) : byte[][]
GetRangeByScore ( byte commandBytes, string setId, double min, double max, int skip, int take, bool withScores ) : byte[][]
GetRangeByScore ( byte commandBytes, string setId, long min, long max, int skip, int take, bool withScores ) : byte[][]
Init ( RedisEndpoint config ) : void
Multi ( ) : void
SafeConnectionClose ( ) : void
SendExpectScanResult ( byte cmd ) : ServiceStack.Redis.ScanResult

Method Details

Append() public method

public Append ( string key, byte value ) : long
key string
value byte
return long

BLPop() public method

public BLPop ( string listId, int timeOutSecs ) : byte[][]
listId string
timeOutSecs int
return byte[][]

BLPopValue() public method

public BLPopValue ( string listId, int timeOutSecs ) : byte[]
listId string
timeOutSecs int
return byte[]

BLPopValue() public method

public BLPopValue ( string listIds, int timeOutSecs ) : byte[][]
listIds string
timeOutSecs int
return byte[][]

BRPop() public method

public BRPop ( string listId, int timeOutSecs ) : byte[][]
listId string
timeOutSecs int
return byte[][]

BRPopLPush() public method

public BRPopLPush ( string fromListId, string toListId, int timeOutSecs ) : byte[]
fromListId string
toListId string
timeOutSecs int
return byte[]

BRPopValue() public method

public BRPopValue ( string listId, int timeOutSecs ) : byte[]
listId string
timeOutSecs int
return byte[]

BRPopValue() public method

public BRPopValue ( string listIds, int timeOutSecs ) : byte[][]
listIds string
timeOutSecs int
return byte[][]

BgRewriteAof() public method

public BgRewriteAof ( ) : void
return void

BgSave() public method

public BgSave ( ) : void
return void

BitCount() public method

public BitCount ( string key ) : long
key string
return long

ChangeDb() public method

public ChangeDb ( long db ) : void
db long
return void

ClientGetName() public method

public ClientGetName ( ) : string
return string

ClientKill() public method

public ClientKill ( string addr = null, string id = null, string type = null, string skipMe = null ) : long
addr string
id string
type string
skipMe string
return long

ClientKill() public method

public ClientKill ( string clientAddr ) : void
clientAddr string
return void

ClientList() public method

public ClientList ( ) : byte[]
return byte[]

ClientPause() public method

public ClientPause ( int timeOutMs ) : void
timeOutMs int
return void

ClientSetName() public method

public ClientSetName ( string name ) : void
name string
return void

ConfigGet() public method

public ConfigGet ( string pattern ) : byte[][]
pattern string
return byte[][]

ConfigResetStat() public method

public ConfigResetStat ( ) : void
return void

ConfigRewrite() public method

public ConfigRewrite ( ) : void
return void

ConfigSet() public method

public ConfigSet ( string item, byte value ) : void
item string
value byte
return void

CreatePipelineCommand() public method

public CreatePipelineCommand ( ) : RedisPipelineCommand
return RedisPipelineCommand

CreateSubscription() public method

public CreateSubscription ( ) : IRedisSubscription
return IRedisSubscription

DebugSegfault() public method

public DebugSegfault ( ) : void
return void

DebugSleep() public method

public DebugSleep ( double durationSecs ) : void
durationSecs double
return void

Decr() public method

public Decr ( string key ) : long
key string
return long

DecrBy() public method

public DecrBy ( string key, int count ) : long
key string
count int
return long

Del() public method

public Del ( ) : long
return long

Del() public method

public Del ( byte key ) : long
key byte
return long

Del() public method

public Del ( string key ) : long
key string
return long

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Dump() public method

public Dump ( string key ) : byte[]
key string
return byte[]

Echo() public method

public Echo ( string text ) : string
text string
return string

Exists() public method

public Exists ( string key ) : long
key string
return long

Expire() public method

public Expire ( byte key, int seconds ) : bool
key byte
seconds int
return bool

Expire() public method

public Expire ( string key, int seconds ) : bool
key string
seconds int
return bool

ExpireAt() public method

public ExpireAt ( string key, long unixTime ) : bool
key string
unixTime long
return bool

FlushAll() public method

public FlushAll ( ) : void
return void

FlushDb() public method

public FlushDb ( ) : void
return void

GeoAdd() public method

public GeoAdd ( string key ) : long
key string
return long

GeoAdd() public method

public GeoAdd ( string key, double longitude, double latitude, string member ) : long
key string
longitude double
latitude double
member string
return long

GeoDist() public method

public GeoDist ( string key, string fromMember, string toMember, string unit = null ) : double
key string
fromMember string
toMember string
unit string
return double

GeoHash() public method

public GeoHash ( string key ) : string[]
key string
return string[]

GeoPos() public method

public GeoPos ( string key ) : List
key string
return List

GeoRadius() public method

public 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 ) : List
key string
longitude double
latitude double
radius double
unit string
withCoords bool
withDist bool
withHash bool
count int
asc bool
return List

GeoRadiusByMember() public method

public GeoRadiusByMember ( string key, string member, double radius, string unit, bool withCoords = false, bool withDist = false, bool withHash = false, int count = null, bool asc = null ) : List
key string
member string
radius double
unit string
withCoords bool
withDist bool
withHash bool
count int
asc bool
return List

Get() public method

public Get ( byte key ) : byte[]
key byte
return byte[]

Get() public method

public Get ( string key ) : byte[]
key string
return byte[]

GetBit() public method

public GetBit ( string key, int offset ) : long
key string
offset int
return long

GetBytes() public method

public GetBytes ( string key ) : byte[]
key string
return byte[]

GetEntryType() public method

public GetEntryType ( string key ) : RedisKeyType
key string
return RedisKeyType

GetRange() public method

public GetRange ( string key, int fromIndex, int toIndex ) : byte[]
key string
fromIndex int
toIndex int
return byte[]

GetSet() public method

public GetSet ( string key, byte value ) : byte[]
key string
value byte
return byte[]

HDel() public method

public HDel ( byte hashId, byte key ) : long
hashId byte
key byte
return long

HDel() public method

public HDel ( string hashId, byte key ) : long
hashId string
key byte
return long

HExists() public method

public HExists ( string hashId, byte key ) : long
hashId string
key byte
return long

HGet() public method

public HGet ( byte hashId, byte key ) : byte[]
hashId byte
key byte
return byte[]

HGet() public method

public HGet ( string hashId, byte key ) : byte[]
hashId string
key byte
return byte[]

HGetAll() public method

public HGetAll ( string hashId ) : byte[][]
hashId string
return byte[][]

HIncrby() public method

public HIncrby ( string hashId, byte key, int incrementBy ) : long
hashId string
key byte
incrementBy int
return long

HIncrby() public method

public HIncrby ( string hashId, byte key, long incrementBy ) : long
hashId string
key byte
incrementBy long
return long

HIncrbyFloat() public method

public HIncrbyFloat ( string hashId, byte key, double incrementBy ) : double
hashId string
key byte
incrementBy double
return double

HKeys() public method

public HKeys ( string hashId ) : byte[][]
hashId string
return byte[][]

HLen() public method

public HLen ( string hashId ) : long
hashId string
return long

HMGet() public method

public HMGet ( string hashId ) : byte[][]
hashId string
return byte[][]

HMSet() public method

public HMSet ( string hashId, byte keys, byte values ) : void
hashId string
keys byte
values byte
return void

HScan() public method

public HScan ( string hashId, ulong cursor, int count = 10, string match = null ) : ServiceStack.Redis.ScanResult
hashId string
cursor ulong
count int
match string
return ServiceStack.Redis.ScanResult

HSet() public method

public HSet ( byte hashId, byte key, byte value ) : long
hashId byte
key byte
value byte
return long

HSet() public method

public HSet ( string hashId, byte key, byte value ) : long
hashId string
key byte
value byte
return long

HSetNX() public method

public HSetNX ( string hashId, byte key, byte value ) : long
hashId string
key byte
value byte
return long

HVals() public method

public HVals ( string hashId ) : byte[][]
hashId string
return byte[][]

Incr() public method

public Incr ( string key ) : long
key string
return long

IncrBy() public method

public IncrBy ( string key, int count ) : long
key string
count int
return long

IncrBy() public method

public IncrBy ( string key, long count ) : long
key string
count long
return long

IncrByFloat() public method

public IncrByFloat ( string key, double incrBy ) : double
key string
incrBy double
return double

Keys() public method

public Keys ( string pattern ) : byte[][]
pattern string
return byte[][]

LIndex() public method

public LIndex ( string listId, int listIndex ) : byte[]
listId string
listIndex int
return byte[]

LInsert() public method

public LInsert ( string listId, bool insertBefore, byte pivot, byte value ) : void
listId string
insertBefore bool
pivot byte
value byte
return void

LLen() public method

public LLen ( string listId ) : long
listId string
return long

LPop() public method

public LPop ( string listId ) : byte[]
listId string
return byte[]

LPush() public method

public LPush ( string listId, byte value ) : long
listId string
value byte
return long

LPushX() public method

public LPushX ( string listId, byte value ) : long
listId string
value byte
return long

LRange() public method

public LRange ( string listId, int startingFrom, int endingAt ) : byte[][]
listId string
startingFrom int
endingAt int
return byte[][]

LRem() public method

public LRem ( string listId, int removeNoOfMatches, byte value ) : long
listId string
removeNoOfMatches int
value byte
return long

LSet() public method

public LSet ( string listId, int listIndex, byte value ) : void
listId string
listIndex int
value byte
return void

LTrim() public method

public LTrim ( string listId, int keepStartingFrom, int keepEndingAt ) : void
listId string
keepStartingFrom int
keepEndingAt int
return void

MGet() public method

public MGet ( ) : byte[][]
return byte[][]

MSet() public method

public MSet ( byte keys, byte values ) : void
keys byte
values byte
return void

MSet() public method

public MSet ( string keys, byte values ) : void
keys string
values byte
return void

MSetNx() public method

public MSetNx ( byte keys, byte values ) : bool
keys byte
values byte
return bool

MSetNx() public method

public MSetNx ( string keys, byte values ) : bool
keys string
values byte
return bool

Migrate() public method

public Migrate ( string host, int port, string key, int destinationDb, long timeoutMs ) : void
host string
port int
key string
destinationDb int
timeoutMs long
return void

Move() public method

public Move ( string key, int db ) : bool
key string
db int
return bool

ObjectIdleTime() public method

public ObjectIdleTime ( string key ) : long
key string
return long

PExpire() public method

public PExpire ( byte key, long ttlMs ) : bool
key byte
ttlMs long
return bool

PExpire() public method

public PExpire ( string key, long ttlMs ) : bool
key string
ttlMs long
return bool

PExpireAt() public method

public PExpireAt ( string key, long unixTimeMs ) : bool
key string
unixTimeMs long
return bool

PSetEx() public method

public PSetEx ( string key, long expireInMs, byte value ) : void
key string
expireInMs long
value byte
return void

PSubscribe() public method

public PSubscribe ( ) : byte[][]
return byte[][]

PTtl() public method

public PTtl ( string key ) : long
key string
return long

PUnSubscribe() public method

public PUnSubscribe ( ) : byte[][]
return byte[][]

Persist() public method

public Persist ( string key ) : bool
key string
return bool

PfAdd() public method

public PfAdd ( string key ) : bool
key string
return bool

PfCount() public method

public PfCount ( string key ) : long
key string
return long

PfMerge() public method

public PfMerge ( string toKeyId ) : void
toKeyId string
return void

Ping() public method

public Ping ( ) : bool
return bool

Publish() public method

public Publish ( string toChannel, byte message ) : long
toChannel string
message byte
return long

Quit() public method

public Quit ( ) : void
return void

RPop() public method

public RPop ( string listId ) : byte[]
listId string
return byte[]

RPopLPush() public method

public RPopLPush ( string fromListId, string toListId ) : byte[]
fromListId string
toListId string
return byte[]

RPush() public method

public RPush ( string listId, byte value ) : long
listId string
value byte
return long

RPushX() public method

public RPushX ( string listId, byte value ) : long
listId string
value byte
return long

RandomKey() public method

public RandomKey ( ) : string
return string

RawCommand() public method

public RawCommand ( ) : ServiceStack.Redis.RedisData
return ServiceStack.Redis.RedisData

ReceiveMessages() public method

public ReceiveMessages ( ) : byte[][]
return byte[][]

RedisNativeClient() public method

public RedisNativeClient ( ) : System
return System

RedisNativeClient() public method

public RedisNativeClient ( RedisEndpoint config ) : System
config RedisEndpoint
return System

RedisNativeClient() public method

public RedisNativeClient ( string connectionString ) : System
connectionString string
return System

RedisNativeClient() public method

public RedisNativeClient ( string host, int port ) : System
host string
port int
return System

RedisNativeClient() public method

public RedisNativeClient ( string host, int port, string password = null, long db = RedisConfig.DefaultDb ) : System
host string
port int
password string
db long
return System

Rename() public method

public Rename ( string oldKeyname, string newKeyname ) : void
oldKeyname string
newKeyname string
return void

RenameNx() public method

public RenameNx ( string oldKeyname, string newKeyname ) : bool
oldKeyname string
newKeyname string
return bool

Restore() public method

public Restore ( string key, long expireMs, byte dumpValue ) : byte[]
key string
expireMs long
dumpValue byte
return byte[]

Role() public method

public Role ( ) : ServiceStack.Redis.RedisText
return ServiceStack.Redis.RedisText

SAdd() public method

public SAdd ( string setId, byte value ) : long
setId string
value byte
return long

SCard() public method

public SCard ( string setId ) : long
setId string
return long

SDiff() public method

public SDiff ( string fromSetId ) : byte[][]
fromSetId string
return byte[][]

SDiffStore() public method

public SDiffStore ( string intoSetId, string fromSetId ) : void
intoSetId string
fromSetId string
return void

SInter() public method

public SInter ( ) : byte[][]
return byte[][]

SInterStore() public method

public SInterStore ( string intoSetId ) : void
intoSetId string
return void

SIsMember() public method

public SIsMember ( string setId, byte value ) : long
setId string
value byte
return long

SMembers() public method

public SMembers ( string setId ) : byte[][]
setId string
return byte[][]

SMove() public method

public SMove ( string fromSetId, string toSetId, byte value ) : void
fromSetId string
toSetId string
value byte
return void

SPop() public method

public SPop ( string setId ) : byte[]
setId string
return byte[]

SPop() public method

public SPop ( string setId, int count ) : byte[][]
setId string
count int
return byte[][]

SRandMember() public method

public SRandMember ( string setId ) : byte[]
setId string
return byte[]

SRandMember() public method

public SRandMember ( string setId, int count ) : byte[][]
setId string
count int
return byte[][]

SRem() public method

public SRem ( string setId, byte value ) : long
setId string
value byte
return long

SScan() public method

public SScan ( string setId, ulong cursor, int count = 10, string match = null ) : ServiceStack.Redis.ScanResult
setId string
cursor ulong
count int
match string
return ServiceStack.Redis.ScanResult

SUnion() public method

public SUnion ( ) : byte[][]
return byte[][]

SUnionStore() public method

public SUnionStore ( string intoSetId ) : void
intoSetId string
return void

Save() public method

public Save ( ) : void
return void

SaveAsync() public method

public SaveAsync ( ) : void
return void

Scan() public method

public Scan ( ulong cursor, int count = 10, string match = null ) : ServiceStack.Redis.ScanResult
cursor ulong
count int
match string
return ServiceStack.Redis.ScanResult

SentinelFailover() public method

public SentinelFailover ( string masterName ) : void
masterName string
return void

SentinelGetMasterAddrByName() public method

public SentinelGetMasterAddrByName ( string masterName ) : List
masterName string
return List

SentinelMaster() public method

public SentinelMaster ( string masterName ) : string>.Dictionary
masterName string
return string>.Dictionary

SentinelMasters() public method

public SentinelMasters ( ) : string>>.List
return string>>.List

SentinelSentinels() public method

public SentinelSentinels ( string masterName ) : string>>.List
masterName string
return string>>.List

SentinelSlaves() public method

public SentinelSlaves ( string masterName ) : string>>.List
masterName string
return string>>.List

Set() public method

public Set ( string key, byte value, bool exists, int expirySeconds, long expiryMs ) : bool
key string
value byte
exists bool
expirySeconds int
expiryMs long
return bool

Set() public method

public Set ( byte key, byte value, int expirySeconds, long expiryMs ) : void
key byte
value byte
expirySeconds int
expiryMs long
return void

Set() public method

public Set ( string key, byte value ) : void
key string
value byte
return void

Set() public method

public Set ( string key, byte value, int expirySeconds, long expiryMs ) : void
key string
value byte
expirySeconds int
expiryMs long
return void

SetBit() public method

public SetBit ( string key, int offset, int value ) : long
key string
offset int
value int
return long

SetEx() public method

public SetEx ( byte key, int expireInSeconds, byte value ) : void
key byte
expireInSeconds int
value byte
return void

SetEx() public method

public SetEx ( string key, int expireInSeconds, byte value ) : void
key string
expireInSeconds int
value byte
return void

SetNX() public method

public SetNX ( string key, byte value ) : long
key string
value byte
return long

SetRange() public method

public SetRange ( string key, int offset, byte value ) : long
key string
offset int
value byte
return long

Shutdown() public method

public Shutdown ( ) : void
return void

ShutdownNoSave() public method

public ShutdownNoSave ( ) : void
return void

SlaveOf() public method

public SlaveOf ( string hostname, int port ) : void
hostname string
port int
return void

SlaveOfNoOne() public method

public SlaveOfNoOne ( ) : void
return void

Slowlog() public method

public Slowlog ( int top ) : object[]
top int
return object[]

SlowlogReset() public method

public SlowlogReset ( ) : void
return void

Sort() public method

public Sort ( string listOrSetId, ServiceStack.Redis.SortOptions sortOptions ) : byte[][]
listOrSetId string
sortOptions ServiceStack.Redis.SortOptions
return byte[][]

StrLen() public method

public StrLen ( string key ) : long
key string
return long

Subscribe() public method

public Subscribe ( ) : byte[][]
return byte[][]

Time() public method

public Time ( ) : byte[][]
return byte[][]

Ttl() public method

public Ttl ( string key ) : long
key string
return long

Type() public method

public Type ( string key ) : string
key string
return string

UnSubscribe() public method

public UnSubscribe ( ) : byte[][]
return byte[][]

UnWatch() public method

public UnWatch ( ) : void
return void

Watch() public method

public Watch ( ) : void
return void

ZAdd() public method

public ZAdd ( string setId, double>.List pairs ) : long
setId string
pairs double>.List
return long

ZAdd() public method

public ZAdd ( string setId, long>.List pairs ) : long
setId string
pairs long>.List
return long

ZAdd() public method

public ZAdd ( string setId, double score, byte value ) : long
setId string
score double
value byte
return long

ZAdd() public method

public ZAdd ( string setId, long score, byte value ) : long
setId string
score long
value byte
return long

ZCard() public method

public ZCard ( string setId ) : long
setId string
return long

ZCount() public method

public ZCount ( string setId, double min, double max ) : long
setId string
min double
max double
return long

ZCount() public method

public ZCount ( string setId, long min, long max ) : long
setId string
min long
max long
return long

ZIncrBy() public method

public ZIncrBy ( string setId, double incrBy, byte value ) : double
setId string
incrBy double
value byte
return double

ZIncrBy() public method

public ZIncrBy ( string setId, long incrBy, byte value ) : double
setId string
incrBy long
value byte
return double

ZInterStore() public method

public ZInterStore ( string intoSetId ) : long
intoSetId string
return long

ZInterStore() public method

public ZInterStore ( string intoSetId, string setIds, string args ) : long
intoSetId string
setIds string
args string
return long

ZLexCount() public method

public ZLexCount ( string setId, string min, string max ) : long
setId string
min string
max string
return long

ZRange() public method

public ZRange ( string setId, int min, int max ) : byte[][]
setId string
min int
max int
return byte[][]

ZRangeByLex() public method

public ZRangeByLex ( string setId, string min, string max, int skip = null, int take = null ) : byte[][]
setId string
min string
max string
skip int
take int
return byte[][]

ZRangeByScore() public method

public ZRangeByScore ( string setId, double min, double max, int skip, int take ) : byte[][]
setId string
min double
max double
skip int
take int
return byte[][]

ZRangeByScore() public method

public ZRangeByScore ( string setId, long min, long max, int skip, int take ) : byte[][]
setId string
min long
max long
skip int
take int
return byte[][]

ZRangeByScoreWithScores() public method

public ZRangeByScoreWithScores ( string setId, double min, double max, int skip, int take ) : byte[][]
setId string
min double
max double
skip int
take int
return byte[][]

ZRangeByScoreWithScores() public method

public ZRangeByScoreWithScores ( string setId, long min, long max, int skip, int take ) : byte[][]
setId string
min long
max long
skip int
take int
return byte[][]

ZRangeWithScores() public method

public ZRangeWithScores ( string setId, int min, int max ) : byte[][]
setId string
min int
max int
return byte[][]

ZRank() public method

public ZRank ( string setId, byte value ) : long
setId string
value byte
return long

ZRem() public method

public ZRem ( string setId, byte value ) : long
setId string
value byte
return long

ZRemRangeByLex() public method

public ZRemRangeByLex ( string setId, string min, string max ) : long
setId string
min string
max string
return long

ZRemRangeByRank() public method

public ZRemRangeByRank ( string setId, int min, int max ) : long
setId string
min int
max int
return long

ZRemRangeByScore() public method

public ZRemRangeByScore ( string setId, double fromScore, double toScore ) : long
setId string
fromScore double
toScore double
return long

ZRemRangeByScore() public method

public ZRemRangeByScore ( string setId, long fromScore, long toScore ) : long
setId string
fromScore long
toScore long
return long

ZRevRange() public method

public ZRevRange ( string setId, int min, int max ) : byte[][]
setId string
min int
max int
return byte[][]

ZRevRangeByScore() public method

public ZRevRangeByScore ( string setId, double min, double max, int skip, int take ) : byte[][]
setId string
min double
max double
skip int
take int
return byte[][]

ZRevRangeByScore() public method

public ZRevRangeByScore ( string setId, long min, long max, int skip, int take ) : byte[][]
setId string
min long
max long
skip int
take int
return byte[][]

ZRevRangeByScoreWithScores() public method

public ZRevRangeByScoreWithScores ( string setId, double min, double max, int skip, int take ) : byte[][]
setId string
min double
max double
skip int
take int
return byte[][]

ZRevRangeByScoreWithScores() public method

public ZRevRangeByScoreWithScores ( string setId, long min, long max, int skip, int take ) : byte[][]
setId string
min long
max long
skip int
take int
return byte[][]

ZRevRangeWithScores() public method

public ZRevRangeWithScores ( string setId, int min, int max ) : byte[][]
setId string
min int
max int
return byte[][]

ZRevRank() public method

public ZRevRank ( string setId, byte value ) : long
setId string
value byte
return long

ZScan() public method

public ZScan ( string setId, ulong cursor, int count = 10, string match = null ) : ScanResult
setId string
cursor ulong
count int
match string
return ScanResult

ZScore() public method

public ZScore ( string setId, byte value ) : double
setId string
value byte
return double

ZUnionStore() public method

public ZUnionStore ( string intoSetId ) : long
intoSetId string
return long

ZUnionStore() public method

public ZUnionStore ( string intoSetId, string setIds, string args ) : long
intoSetId string
setIds string
args string
return long

Property Details

Bstream protected_oe property

protected BufferedStream Bstream
return BufferedStream

socket protected_oe property

protected Socket socket
return Socket

sslStream protected_oe property

protected SslStream sslStream
return SslStream