Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 3e81055

Browse files
committed
Make BufferLength readonly
1 parent f4cf27f commit 3e81055

File tree

5 files changed

+6
-16
lines changed

5 files changed

+6
-16
lines changed

lib/net45/ServiceStack.Text.dll

2.5 KB
Binary file not shown.

lib/netstandard2.0/ServiceStack.Text.deps.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"runtimeTarget": {
33
"name": ".NETStandard,Version=v2.0/",
4-
"signature": "ed7a2f70792eb35e8adf5dee679efc876cc8f956"
4+
"signature": "c6ed04af7c063103d0ede92fb9dda96fc3941ade"
55
},
66
"compilationOptions": {},
77
"targets": {
@@ -15,8 +15,7 @@
1515
"System.Memory": "4.5.1",
1616
"System.Reflection.Emit": "4.3.0",
1717
"System.Reflection.Emit.Lightweight": "4.3.0",
18-
"System.Runtime": "4.3.0",
19-
"System.ValueTuple": "4.5.0"
18+
"System.Runtime": "4.3.0"
2019
},
2120
"runtime": {
2221
"ServiceStack.Text.dll": {}
@@ -172,8 +171,7 @@
172171
"Microsoft.NETCore.Targets": "1.1.0",
173172
"System.Runtime": "4.3.0"
174173
}
175-
},
176-
"System.ValueTuple/4.5.0": {}
174+
}
177175
}
178176
},
179177
"libraries": {
@@ -307,13 +305,6 @@
307305
"sha512": "sha512-LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==",
308306
"path": "system.threading.tasks/4.3.0",
309307
"hashPath": "system.threading.tasks.4.3.0.nupkg.sha512"
310-
},
311-
"System.ValueTuple/4.5.0": {
312-
"type": "package",
313-
"serviceable": true,
314-
"sha512": "sha512-xZtSZNEHGa+tGsKuP4sh257vxJ/yemShz4EusmomkynMzuEDDjVaErBNewpzEF6swUgbcrSQAX3ELsEp1zCOwA==",
315-
"path": "system.valuetuple/4.5.0",
316-
"hashPath": "system.valuetuple.4.5.0.nupkg.sha512"
317308
}
318309
}
319310
}
2 KB
Binary file not shown.

src/ServiceStack.Redis/RedisConfig.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public class RedisConfig
5858
public static int BackOffMultiplier = 10;
5959

6060
/// <summary>
61-
/// The Byte Buffer Size to combine Redis Operations within (default 1450 bytes)
61+
/// The Byte Buffer Size to combine Redis Operations within (1450 bytes)
6262
/// </summary>
63-
public static int BufferLength = 1450;
63+
public static int BufferLength => ServiceStack.Text.Pools.BufferPool.BUFFER_LENGTH;
6464

6565
/// <summary>
6666
/// The Byte Buffer Size for Operations to use a byte buffer pool (default 500kb)
@@ -111,7 +111,6 @@ public static void Reset()
111111
DefaultIdleTimeOutSecs = 240;
112112
DefaultMaxPoolSize = null;
113113
BackOffMultiplier = 10;
114-
BufferLength = 1450;
115114
BufferPoolMaxSize = 500000;
116115
VerifyMasterConnections = true;
117116
HostLookupTimeoutMs = 200;

tests/ServiceStack.Redis.Tests/ServiceStack.Redis.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
</ItemGroup>
6464

6565
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
66-
<PackageReference Include="Microsoft.Extensions.Primitives" Version="2.0.0" />
66+
<PackageReference Include="Microsoft.Extensions.Primitives" Version="2.1.1" />
6767

6868
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.Interfaces.dll" />
6969
<Reference Include="..\..\lib\netstandard2.0\ServiceStack.Text.dll" />

0 commit comments

Comments
 (0)