public BRPOPLPUSH(string source, string dest, int timeout, IDataFormater dataFormater) { DataFormater = dataFormater; Source = source; Dest = dest; TimeOut = timeout; }
public LSET(string key, int index, object value, IDataFormater dataFormater) { Key = key; Index = index; Value = value; DataFormater = dataFormater; }
public HSETNX(string key, string field, object value, IDataFormater dataFormater) { Key = key; Field = field; Value = value; DataFormater = dataFormater; }
public SETEX(string key, int seconds, object value, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; Seconds = seconds; Value = value; }
public LREM(string key, int count, object value, IDataFormater dataFormater = null) { this.DataFormater = dataFormater; Key = key; Count = count; Value = value; }
public PSETEX(string key, long milliseconds, object value, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; Milliseconds = milliseconds; Value = value; }
public LRANGE(string key, int start, int stop, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; Start = start; Stop = stop; }
public LINSERT(string key, object value, bool before, object addValue, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; Value = value; Before = before; AddValue = addValue; }
public ScaleSet(string title, string unit, ScaleData min, ScaleData max, IDataFormater dataFormater) { Title = title; Unit = unit; Min = min; Max = max; _dataFormater = dataFormater; Items = new List <ScaleData>(); }
public RedisDB(int db = 0, IDataFormater dataFormater = null, IHostHandler hostHandler = null) { DB = db; DataFormater = dataFormater; if (hostHandler == null) { mDetectionTime = new System.Threading.Timer(OnDetection, null, 1000, 1000); this.Host = this; } else { this.Host = hostHandler; } }
public HGET(string key, string field, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; Field = field; }
public GET(string key, IDataFormater formater) { Key = key; DataFormater = formater; }
public RPOP(string key, IDataFormater dataFormater = null) { DataFormater = dataFormater; Key = key; }
public BLPOP(string[] key, int timeout, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; TimeOut = timeout; }
public MSET(IDataFormater dataFormater) { DataFormater = dataFormater; }
public HGETALL(string key, IDataFormater dataFormater) { this.DataFormater = dataFormater; Key = key; }
public MGET(IDataFormater dataFormater, params string[] keys) { Keys = keys; DataFormater = dataFormater; }
public LINDEX(string key, int index, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; Index = index; }
public HMGET(string key, IDataFormater dataFormater, params string[] fields) { Key = key; DataFormater = dataFormater; Fields = fields; }
public SUBSCRIBE(IDataFormater dataFormater, params string[] channels) { Changes = channels; DataFormater = dataFormater; }
public ReportComposer(IDocument dc, IDataFormater df, IReportPrinter rp) { document = dc; formater = df; printer = rp; }
public HMSET(string key, IDataFormater dataFormater) { this.DataFormater = dataFormater; Key = key; }
public RPUSH(string key, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; }
public RedisList(RedisDB db, string key, IDataFormater dataFormater = null) { DB = db; Key = key; DataFormater = dataFormater; }
public LPOP(string key, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; }
public RPOPLPUSH(string source, string dest, IDataFormater dataFormater = null) { DataFormater = dataFormater; Source = source; Dest = dest; }
public PUBLISH(string channel, Object message, IDataFormater dataFormater) { DataFormater = dataFormater; Channel = channel; Message = message; }
public SETNX(string key, object value, IDataFormater dataFormater) { DataFormater = dataFormater; Key = key; Value = value; }
public RedisDB Cloneable(IDataFormater dataFormater = null) { var result = new RedisDB(this.DB, dataFormater, this); return(result); }
/// <summary> /// 导出数据,返回T类型的容器 /// </summary> /// <param name="data">数据</param> /// <param name="formater">数据格式化处理类</param> /// <returns></returns> public static TResult Export <TResult>(IEnumerable <object> data, IDataFormater <TResult> formater) { return(formater.Format(data)); }