예제 #1
0
 public Redis(IPacker pack, RedisConfig config)
 {
     RedisClientManager.Init(config);
     this.pack    = pack;
     this.factory = new CmdFactory(pack);
 }
예제 #2
0
 public Cmd(CmdFactory factory)
 {
     this.stream  = new MemoryStream(); //Util.MemoryStreamManager.GetStream("cmd", 256);
     this.result  = new MemoryStream(); //Util.MemoryStreamManager.GetStream("cmd", 256);
     this.factory = factory;
 }