C# Class Cedar.Core.EntLib.Data.RedisDatabaseWrapper

Inheritance: IDisposable
Show file Open project: Chinaccn/surfboard Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
HashDelete ( string key, string hashfield ) : bool

HashExists ( string key, string hashfield ) : bool

HashGet ( string key, string hashfield ) : string

HashGetAll ( string key ) : string>.Dictionary

HashLength ( string key ) : long

HashSet ( string key, string hashfield, string value ) : bool

HashValues ( string key ) : List

KeyDelete ( string key ) : bool

KeyExists ( string key ) : bool

KeyExpire ( string key, System.TimeSpan value ) : bool

RedisDatabaseWrapper ( string ip, int database, string password = null, int port = 6379 ) : System
StringGet ( string key ) : string

StringSet ( string key, string value ) : bool

Method Details

Dispose() public method

public Dispose ( ) : void
return void

HashDelete() public method

public HashDelete ( string key, string hashfield ) : bool
key string
hashfield string
return bool

HashExists() public method

public HashExists ( string key, string hashfield ) : bool
key string
hashfield string
return bool

HashGet() public method

public HashGet ( string key, string hashfield ) : string
key string
hashfield string
return string

HashGetAll() public method

public HashGetAll ( string key ) : string>.Dictionary
key string
return string>.Dictionary

HashLength() public method

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

HashSet() public method

public HashSet ( string key, string hashfield, string value ) : bool
key string
hashfield string
value string
return bool

HashValues() public method

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

KeyDelete() public method

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

KeyExists() public method

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

KeyExpire() public method

public KeyExpire ( string key, System.TimeSpan value ) : bool
key string
value System.TimeSpan
return bool

RedisDatabaseWrapper() public method

public RedisDatabaseWrapper ( string ip, int database, string password = null, int port = 6379 ) : System
ip string
database int
password string
port int
return System

StringGet() public method

public StringGet ( string key ) : string
key string
return string

StringSet() public method

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