C# Class Redis, redis-sharp

Inheritance: IDisposable
显示文件 Open project: SamSaffron/redis-sharp Class Usage Examples

Public Methods

Method Description
AddToSet ( string key, byte member ) : bool
AddToSet ( string key, string member ) : bool
BackgroundSave ( ) : void
CardinalityOfSet ( string key ) : int
ContainsKey ( string key ) : bool
Decrement ( string key ) : int
Decrement ( string key, int count ) : int
Dispose ( ) : void
Expire ( string key, int seconds ) : bool
ExpireAt ( string key, int time ) : bool
FlushAll ( ) : void
FlushDb ( ) : void
Get ( string key ) : byte[]
GetDifferenceOfSets ( ) : byte[][]
GetInfo ( ) : string>.Dictionary
GetIntersectionOfSets ( ) : byte[][]
GetKeys ( ) : byte[][]
GetKeys ( string pattern ) : string[]
GetMembersOfSet ( string key ) : byte[][]
GetRandomMemberOfSet ( string key ) : byte[]
GetSet ( string key, byte value ) : byte[]
GetSet ( string key, string value ) : string
GetString ( string key ) : string
GetUnionOfSets ( ) : byte[][]
Increment ( string key ) : int
Increment ( string key, int count ) : int
IsMemberOfSet ( string key, byte member ) : bool
IsMemberOfSet ( string key, string member ) : bool
LeftPop ( string key ) : byte[]
ListIndex ( string key, int index ) : byte[]
ListLength ( string key ) : int
ListRange ( string key, int start, int end ) : byte[][]
MoveMemberToSet ( string srcKey, string destKey, byte member ) : bool
PopRandomMemberOfSet ( string key ) : byte[]
RandomKey ( ) : string
Redis ( ) : System
Redis ( string host ) : System
Redis ( string host, int port ) : System
Remove ( string key ) : bool
Remove ( ) : int
RemoveFromSet ( string key, byte member ) : bool
RemoveFromSet ( string key, string member ) : bool
Rename ( string oldKeyname, string newKeyname ) : bool
RightPush ( string key, string value ) : void
Save ( ) : string
SendDataCommandExpectMultiBulkReply ( byte data, string command ) : byte[][]
Set ( byte[]>.IDictionary dict ) : void
Set ( string>.IDictionary dict ) : void
Set ( string key, byte value ) : void
Set ( string key, string value ) : void
SetNX ( string key, byte value ) : bool
SetNX ( string key, string value ) : bool
Shutdown ( ) : void
Sort ( SortOptions, options ) : byte[][]
StoreDifferenceOfSets ( string destKey ) : void
StoreIntersectionOfSets ( string destKey ) : void
StoreUnionOfSets ( string destKey ) : void
TimeToLive ( string key ) : int
TypeOf ( string key ) : KeyType
this ( string key ) : string

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Connect ( ) : void
ExpectSuccess ( ) : void
Log ( string fmt ) : void
ReadData ( ) : byte[]
ReadLine ( ) : string
SendCommand ( string cmd ) : bool
SendDataCommand ( byte data, string cmd ) : bool
SendDataExpectInt ( byte data, string cmd ) : int
SendExpectData ( byte data, string cmd ) : byte[]
SendExpectInt ( string cmd ) : int
SendExpectString ( string cmd ) : string
SendExpectSuccess ( string cmd ) : void
SendGetString ( string cmd ) : string
StoreSetCommands ( string cmd, string destKey ) : void

Method Details

AddToSet() public method

public AddToSet ( string key, byte member ) : bool
key string
member byte
return bool

AddToSet() public method

public AddToSet ( string key, string member ) : bool
key string
member string
return bool

BackgroundSave() public method

public BackgroundSave ( ) : void
return void

CardinalityOfSet() public method

public CardinalityOfSet ( string key ) : int
key string
return int

ContainsKey() public method

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

Decrement() public method

public Decrement ( string key ) : int
key string
return int

Decrement() public method

public Decrement ( string key, int count ) : int
key string
count int
return int

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

Expire() public method

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

ExpireAt() public method

public ExpireAt ( string key, int time ) : bool
key string
time int
return bool

FlushAll() public method

public FlushAll ( ) : void
return void

FlushDb() public method

public FlushDb ( ) : void
return void

Get() public method

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

GetDifferenceOfSets() public method

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

GetInfo() public method

public GetInfo ( ) : string>.Dictionary
return string>.Dictionary

GetIntersectionOfSets() public method

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

GetKeys() public method

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

GetKeys() public method

public GetKeys ( string pattern ) : string[]
pattern string
return string[]

GetMembersOfSet() public method

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

GetRandomMemberOfSet() public method

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

GetSet() public method

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

GetSet() public method

public GetSet ( string key, string value ) : string
key string
value string
return string

GetString() public method

public GetString ( string key ) : string
key string
return string

GetUnionOfSets() public method

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

Increment() public method

public Increment ( string key ) : int
key string
return int

Increment() public method

public Increment ( string key, int count ) : int
key string
count int
return int

IsMemberOfSet() public method

public IsMemberOfSet ( string key, byte member ) : bool
key string
member byte
return bool

IsMemberOfSet() public method

public IsMemberOfSet ( string key, string member ) : bool
key string
member string
return bool

LeftPop() public method

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

ListIndex() public method

public ListIndex ( string key, int index ) : byte[]
key string
index int
return byte[]

ListLength() public method

public ListLength ( string key ) : int
key string
return int

ListRange() public method

public ListRange ( string key, int start, int end ) : byte[][]
key string
start int
end int
return byte[][]

MoveMemberToSet() public method

public MoveMemberToSet ( string srcKey, string destKey, byte member ) : bool
srcKey string
destKey string
member byte
return bool

PopRandomMemberOfSet() public method

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

RandomKey() public method

public RandomKey ( ) : string
return string

Redis() public method

public Redis ( ) : System
return System

Redis() public method

public Redis ( string host ) : System
host string
return System

Redis() public method

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

Remove() public method

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

Remove() public method

public Remove ( ) : int
return int

RemoveFromSet() public method

public RemoveFromSet ( string key, byte member ) : bool
key string
member byte
return bool

RemoveFromSet() public method

public RemoveFromSet ( string key, string member ) : bool
key string
member string
return bool

Rename() public method

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

RightPush() public method

public RightPush ( string key, string value ) : void
key string
value string
return void

Save() public method

public Save ( ) : string
return string

SendDataCommandExpectMultiBulkReply() public method

public SendDataCommandExpectMultiBulkReply ( byte data, string command ) : byte[][]
data byte
command string
return byte[][]

Set() public method

public Set ( byte[]>.IDictionary dict ) : void
dict byte[]>.IDictionary
return void

Set() public method

public Set ( string>.IDictionary dict ) : void
dict string>.IDictionary
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, string value ) : void
key string
value string
return void

SetNX() public method

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

SetNX() public method

public SetNX ( string key, string value ) : bool
key string
value string
return bool

Shutdown() public method

public Shutdown ( ) : void
return void

Sort() public method

public Sort ( SortOptions, options ) : byte[][]
options SortOptions,
return byte[][]

StoreDifferenceOfSets() public method

public StoreDifferenceOfSets ( string destKey ) : void
destKey string
return void

StoreIntersectionOfSets() public method

public StoreIntersectionOfSets ( string destKey ) : void
destKey string
return void

StoreUnionOfSets() public method

public StoreUnionOfSets ( string destKey ) : void
destKey string
return void

TimeToLive() public method

public TimeToLive ( string key ) : int
key string
return int

TypeOf() public method

public TypeOf ( string key ) : KeyType
key string
return KeyType

this() public method

public this ( string key ) : string
key string
return string