Example #1
0
 public BRPOPLPUSH(string source, string dest, int timeout, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Source       = source;
     Dest         = dest;
     TimeOut      = timeout;
 }
Example #2
0
 public LSET(string key, int index, object value, IDataFormater dataFormater)
 {
     Key          = key;
     Index        = index;
     Value        = value;
     DataFormater = dataFormater;
 }
Example #3
0
 public HSETNX(string key, string field, object value, IDataFormater dataFormater)
 {
     Key          = key;
     Field        = field;
     Value        = value;
     DataFormater = dataFormater;
 }
Example #4
0
 public SETEX(string key, int seconds, object value, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
     Seconds      = seconds;
     Value        = value;
 }
Example #5
0
 public LREM(string key, int count, object value, IDataFormater dataFormater = null)
 {
     this.DataFormater = dataFormater;
     Key   = key;
     Count = count;
     Value = value;
 }
Example #6
0
 public PSETEX(string key, long milliseconds, object value, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
     Milliseconds = milliseconds;
     Value        = value;
 }
Example #7
0
 public LRANGE(string key, int start, int stop, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
     Start        = start;
     Stop         = stop;
 }
Example #8
0
 public LINSERT(string key, object value, bool before, object addValue, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
     Value        = value;
     Before       = before;
     AddValue     = addValue;
 }
Example #9
0
        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>();
        }
Example #10
0
 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;
     }
 }
Example #11
0
 public HGET(string key, string field, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
     Field        = field;
 }
Example #12
0
 public GET(string key, IDataFormater formater)
 {
     Key          = key;
     DataFormater = formater;
 }
Example #13
0
 public RPOP(string key, IDataFormater dataFormater = null)
 {
     DataFormater = dataFormater;
     Key          = key;
 }
Example #14
0
 public BLPOP(string[] key, int timeout, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
     TimeOut      = timeout;
 }
Example #15
0
 public MSET(IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
 }
Example #16
0
 public HGETALL(string key, IDataFormater dataFormater)
 {
     this.DataFormater = dataFormater;
     Key = key;
 }
Example #17
0
 public MGET(IDataFormater dataFormater, params string[] keys)
 {
     Keys         = keys;
     DataFormater = dataFormater;
 }
Example #18
0
 public LINDEX(string key, int index, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
     Index        = index;
 }
Example #19
0
 public HMGET(string key, IDataFormater dataFormater, params string[] fields)
 {
     Key          = key;
     DataFormater = dataFormater;
     Fields       = fields;
 }
Example #20
0
 public SUBSCRIBE(IDataFormater dataFormater, params string[] channels)
 {
     Changes      = channels;
     DataFormater = dataFormater;
 }
Example #21
0
 public ReportComposer(IDocument dc, IDataFormater df, IReportPrinter rp)
 {
     document = dc;
     formater = df;
     printer  = rp;
 }
Example #22
0
 public HMSET(string key, IDataFormater dataFormater)
 {
     this.DataFormater = dataFormater;
     Key = key;
 }
Example #23
0
 public RPUSH(string key, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
 }
Example #24
0
 public RedisList(RedisDB db, string key, IDataFormater dataFormater = null)
 {
     DB           = db;
     Key          = key;
     DataFormater = dataFormater;
 }
Example #25
0
 public LPOP(string key, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
 }
Example #26
0
 public RPOPLPUSH(string source, string dest, IDataFormater dataFormater = null)
 {
     DataFormater = dataFormater;
     Source       = source;
     Dest         = dest;
 }
Example #27
0
 public PUBLISH(string channel, Object message, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Channel      = channel;
     Message      = message;
 }
Example #28
0
 public SETNX(string key, object value, IDataFormater dataFormater)
 {
     DataFormater = dataFormater;
     Key          = key;
     Value        = value;
 }
Example #29
0
        public RedisDB Cloneable(IDataFormater dataFormater = null)
        {
            var result = new RedisDB(this.DB, dataFormater, this);

            return(result);
        }
Example #30
0
 /// <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));
 }