Esempio n. 1
0
        public CommandBase(CouchbaseClient client,
			string key,
			CbcOptions options)
        {
            Key = key;
            this.client = client;
            this.options = options;
        }
Esempio n. 2
0
 public CommandBase(CouchbaseClient client,
                    string key,
                    CbcOptions options)
 {
     Key          = key;
     this.client  = client;
     this.options = options;
 }
Esempio n. 3
0
 public CbcSet(CouchbaseClient cli,
               string key, CbcOptions options)
     : base(cli, key, options)
 {
     Value = options.Value;
     if (Value == null)
     {
         throw new ArgumentException("Set command needs value");
     }
 }
Esempio n. 4
0
        public CbcSet(CouchbaseClient cli,
			string key, CbcOptions options)
            : base(cli, key, options)
        {
            Value = options.Value;
            if (Value == null)
            {
                throw new ArgumentException("Set command needs value");
            }
        }
Esempio n. 5
0
 public CbcObserve(CouchbaseClient cli,
                   string key, CbcOptions options, UInt64 cas = 0) :
     base(cli, key, options)
 {
     if (cas > 0)
     {
         Cas = cas;
     }
     else if (options.Cas > 0)
     {
         Cas = options.Cas;
     }
     else
     {
         throw new ArgumentException("Invalid CAS");
     }
 }
Esempio n. 6
0
        public CbcObserve(CouchbaseClient cli,
			string key, CbcOptions options, UInt64 cas = 0)
            : base(cli, key, options)
        {
            if (cas > 0)
            {
                Cas = cas;
            }
            else if (options.Cas > 0 )
            {
                Cas = options.Cas;
            }
            else
            {
                throw new ArgumentException("Invalid CAS");
            }
        }
Esempio n. 7
0
        public CbcGet(CouchbaseClient cli,
			string key,
			CbcOptions opts)
            : base(cli, key, opts)
        {
        }
Esempio n. 8
0
 public CbcObserveWrap(CouchbaseClient cli, string key, CbcOptions opts)
     : base(cli, key, opts)
 {
 }
Esempio n. 9
0
 public CbcGet(CouchbaseClient cli,
               string key,
               CbcOptions opts)
     : base(cli, key, opts)
 {
 }
Esempio n. 10
0
 public CbcObserveWrap(CouchbaseClient cli, string key, CbcOptions opts)
     : base(cli, key, opts)
 {
 }