Example #1
0
        internal StoreOperation(ServerPool pool, StoreCommand mode, string key, object value, ulong casValue, TimeSpan validFor, DateTime expiresAt)
            : base(pool, key)
        {
            this.mode     = mode;
            this.value    = value;
            this.casValue = casValue;

            this.expires = GetExpiration(validFor, expiresAt);
        }
Example #2
0
		internal StoreOperation(ServerPool pool, StoreCommand mode, string key, object value, ulong casValue, TimeSpan validFor, DateTime expiresAt)
			: base(pool, key)
		{
			this.mode = mode;
			this.value = value;
			this.casValue = casValue;

			this.expires = GetExpiration(validFor, expiresAt);
		}
        protected ItemOperation(ServerPool pool, string key)
            : base(pool)
        {
            if (key == null)
                throw new ArgumentNullException("key", "Item key must be specified.");

            if (key.Length == 0)
                throw new ArgumentException("Item key must be specified.", "key");

            this.key = key;
        }
Example #4
0
 public StatsOperation(ServerPool pool) : base(pool)
 {
 }
Example #5
0
 protected Operation(ServerPool serverPool)
 {
     this.serverPool = serverPool;
 }
Example #6
0
		internal IncrementOperation(ServerPool pool, string key, uint amount)
			: base(pool, key)
		{
			this.amount = amount;
		}
 public FlushOperation(ServerPool pool) : base(pool)
 {
 }
Example #8
0
 internal GetOperation(ServerPool pool, string key)
     : base(pool, key)
 {
 }
Example #9
0
		protected Operation(ServerPool serverPool)
		{
			this.serverPool = serverPool;
		}
Example #10
0
		internal GetOperation(ServerPool pool, string key)
			: base(pool, key)
		{
		}
 protected ItemOperation(ServerPool pool, string key)
     : base(pool)
 {
     this.key = key;
 }
 internal IncrementOperation(ServerPool pool, string key, uint amount)
     : base(pool, key)
 {
     this.amount = amount;
 }
 public MultiGetOperation(ServerPool pool, IEnumerable<string> keys)
     : base(pool)
 {
     this.keys = keys;
 }
Example #14
0
 public MultiGetOperation(ServerPool pool, IEnumerable <string> keys)
     : base(pool)
 {
     this.keys = keys;
 }
 internal DeleteOperation(ServerPool pool, string key)
     : base(pool, key)
 {
 }
 internal DeleteOperation(ServerPool pool, string key)
     : base(pool, key)
 {
 }
 public StatsOperation(ServerPool pool)
     : base(pool)
 {
 }
Example #18
0
		public FlushOperation(ServerPool pool) : base(pool) { }
 protected ItemOperation(ServerPool pool, string key)
     : base(pool)
 {
     this.key = key;
 }