8000 Change file encoding · cnblogs/EnyimMemcachedCore@330348b · GitHub
[go: up one dir, main page]

Skip to content

Commit 330348b

Browse files
committed
Change file encoding
1 parent f5a513a commit 330348b

File tree

2 files changed

+79
-79
lines changed

2 files changed

+79
-79
lines changed

Enyim.Caching/Memcached/Protocol/Binary/ConcatOperation.cs

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,49 @@
55

66
namespace Enyim.Caching.Memcached.Protocol.Binary
77
{
8-
/// <summary>
9-
/// Implements append/prepend.
10-
/// </summary>
11-
public class ConcatOperation : BinarySingleItemOperation, IConcatOperation
12-
{
13-
private ArraySegment<byte> data;
14-
private ConcatenationMode mode;
8+
/// <summary>
9+
/// Implements append/prepend.
10+
/// </summary>
11+
public class ConcatOperation : BinarySingleItemOperation, IConcatOperation
12+
{
13+
private readonly ArraySegment<byte> data;
14+
private readonly ConcatenationMode mode;
1515

16-
public ConcatOperation(ConcatenationMode mode, string key, ArraySegment<byte> data)
17-
: base(key)
18-
{
19-
this.data = data;
20-
this.mode = mode;
21-
}
16+
public ConcatOperation(ConcatenationMode mode, string key, ArraySegment<byte> data)
17+
: base(key)
18+
{
19+
this.data = data;
20+
this.mode = mode;
21+
}
2222

23-
protected override BinaryRequest Build()
24-
{
25-
var request = new BinaryRequest((OpCode)this.mode)
26-
{
27-
Key = this.Key,
28-
Cas = this.Cas,
29-
Data = this.data
30-
};
23+
protected override BinaryRequest Build()
24+
{
25+
var request = new BinaryRequest((OpCode)this.mode)
26+
{
27+
Key = this.Key,
28+
Cas = this.Cas,
29+
Data = this.data
30+
};
3131

32-
return request;
33-
}
32+
return request;
33+
}
3434

35-
protected override IOperationResult ProcessResponse(BinaryResponse response)
36-
{
37-
return new BinaryOperationResult() { Success = true };
38-
}
35+
protected override IOperationResult ProcessResponse(BinaryResponse response)
36+
{
37+
return new BinaryOperationResult() { Success = true };
38+
}
3939

40-
Concatena 8000 tionMode IConcatOperation.Mode
41-
{
42-
get { return this.mode; }
43-
}
44-
}
40+
ConcatenationMode IConcatOperation.Mode
41+
{
42+
get { return this.mode; }
43+
}
44+
}
4545
}
4646

4747
#region [ License information ]
4848
/* ************************************************************
4949
*
50-
* Copyright (c) 2010 Attila Kiskó, enyim.com
50+
* Copyright (c) 2010 Attila Kisk? enyim.com
5151
*
5252
* Licensed under the Apache License, Version 2.0 (the "License");
5353
* you may not use this file except in compliance with the License.

Enyim.Caching/Memcached/StoreMode.cs

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
11

22
namespace Enyim.Caching.Memcached
33
{
4-
/// <summary>
5-
/// Inidicates the mode how the items are stored in Memcached.
6-
/// </summary>
7-
public enum StoreMode
8-
{
9-
/// <summary>
10-
/// Store the data, but only if the server does not already hold data for a given key
11-
/// </summary>
12-
Add = 1,
13-
/// <summary>
14-
/// Store the data, but only if the server does already hold data for a given key
15-
/// </summary>
16-
Replace,
17-
/// <summary>
18-
/// Store the data, overwrite if already exist
19-
/// </summary>
20-
Set
21-
};
4+
/// <summary>
5+
/// Inidicates the mode how the items are stored in Memcached.
6+
/// </summary>
7+
public enum StoreMode
8+
{
9+
/// <summary>
10+
/// Store the data, but only if the server does not already hold data for a given key
11+
/// </summary>
12+
Add = 1,
13+
/// <summary>
14+
/// Store the data, but only if the server does already hold data for a given key
15+
/// </summary>
16+
Replace,
17+
/// <summary>
18+
/// Store the data, overwrite if already exist
19+
/// </summary>
20+
Set
21+
};
2222

23-
internal enum StoreCommand
24-
{
25-
/// <summary>
26-
/// Store the data, but only if the server does not already hold data for a given key
27-
/// </summary>
28-
Add = 1,
29-
/// <summary>
30-
/// Store the data, but only if the server does already hold data for a given key
31-
/// </summary>
32-
Replace,
33-
/// <summary>
34-
/// Store the data, overwrite if already exist
35-
/// </summary>
36-
Set,
37-
/// <summary>
38-
/// Appends the data to an existing key's data
39-
/// </summary>
40-
Append,
41-
/// <summary>
42-
/// Inserts the data before an existing key's data
43-
/// </summary>
44-
Prepend,
45-
/// <summary>
46-
/// Stores the data only if it has not been updated by someone else. Uses a "transaction id" to check for modification.
47-
/// </summary>
48-
CheckAndSet
49-
};
23+
internal enum StoreCommand
24+
{
25+
/// <summary>
26+
/// Store the data, but only if the server does not already hold data for a given key
27+
/// </summary>
28+
Add = 1,
29+
/// <summary>
30+
/// Store the data, but only if the server does already hold data for a given key
31+
/// </summary>
32+
Replace,
33+
/// <summary>
34+
/// Store the data, overwrite if already exist
35+
/// </summary>
36+
Set,
37+
/// <summary>
38+
/// Appends the data to an existing key's data
39+
/// </summary>
40+
Append,
41+
/// <summary>
42+
/// Inserts the data before an existing key's data
43+
/// </summary>
44+
Prepend,
45+
/// <summary>
46+
/// Stores the data only if it has not been updated by someone else. Uses a "transaction id" to check for modification.
47+
/// </summary>
48+
CheckAndSet
49+
};
5050
}
5151

5252
#region [ License information ]
5353
/* ************************************************************
5454
*
55-
* Copyright (c) 2010 Attila Kiskó, enyim.com
55+
* Copyright (c) 2010 Attila Kisk? enyim.com
5656
*
5757
* Licensed under the Apache License, Version 2.0 (the "License");
5858
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)
0