1 namespace Couchbase.Core.IO.Operations
2 {
3     internal sealed class Prepend<T> : MutationOperationBase<T>
4     {
Prepend(string bucketName, string key)5         internal Prepend(string bucketName, string key) : base(bucketName, key)
6         { }
7 
BeginSend()8         protected override void BeginSend()
9         {
10             Flags = Transcoder.GetFormat(Content);
11         }
12 
WriteExtras(OperationBuilder builder)13         protected override void WriteExtras(OperationBuilder builder)
14         {
15         }
16 
17         public override OpCode OpCode => OpCode.Prepend;
18 
19         protected override bool SupportsRequestCompression => true;
20     }
21 }
22 
23 #region [ License information ]
24 
25 /* ************************************************************
26  *
27  *    @author Couchbase <info@couchbase.com>
28  *    @copyright 2014 Couchbase, Inc.
29  *
30  *    Licensed under the Apache License, Version 2.0 (the "License");
31  *    you may not use this file except in compliance with the License.
32  *    You may obtain a copy of the License at
33  *
34  *        http://www.apache.org/licenses/LICENSE-2.0
35  *
36  *    Unless required by applicable law or agreed to in writing, software
37  *    distributed under the License is distributed on an "AS IS" BASIS,
38  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39  *    See the License for the specific language governing permissions and
40  *    limitations under the License.
41  *
42  * ************************************************************/
43 
44 #endregion [ License information ]
45