Skip to content

Commit 729f33a

Browse files
committed
Public method API.MemCacheD.GetStats() implemented
1 parent 74fd1cb commit 729f33a

File tree

9 files changed

+27
-5
lines changed

9 files changed

+27
-5
lines changed

rls/API.Library.dll

0 Bytes
Binary file not shown.

rls/API.Library.pdb

0 Bytes
Binary file not shown.

src/API.Library/Entities/MemCacheD.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,29 @@ public static void FlushAll()
708708

709709
}
710710

711+
/// <summary>
712+
/// Get server stats
713+
/// </summary>
714+
/// <returns></returns>
715+
public static ServerStats GetStats()
716+
{
717+
// Check if it's enabled first
718+
if (!IsEnabled())
719+
{
720+
return null;
721+
}
722+
723+
try
724+
{
725+
return MemcachedClient.Stats();
726+
}
727+
catch (Exception e)
728+
{
729+
Log.Instance.Fatal(e);
730+
return null;
731+
}
732+
}
733+
711734
/// <summary>
712735
/// Set the Value object
713736
/// </summary>

src/API.Library/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

54
// General Information about an assembly is controlled through the following
@@ -32,8 +31,8 @@
3231
// You can specify all the values or you can default the Build and Revision Numbers
3332
// by using the '*' as shown below:
3433
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("4.1.1")]
36-
[assembly: AssemblyFileVersion("4.1.1")]
34+
[assembly: AssemblyVersion("4.1.2")]
35+
[assembly: AssemblyFileVersion("4.1.2")]
3736

3837
// Configure log4net using the Web.config file by default
3938
[assembly: log4net.Config.XmlConfigurator(Watch = true)]

test/API.Test/API.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
7373
</PropertyGroup>
7474
<ItemGroup>
75-
<Reference Include="API.Library, Version=4.1.1, Culture=neutral, processorArchitecture=MSIL">
75+
<Reference Include="API.Library, Version=4.1.2, Culture=neutral, processorArchitecture=MSIL">
7676
<SpecificVersion>False</SpecificVersion>
77-
<HintPath>..\packages\API.Library.4.1.1\API.Library.dll</HintPath>
77+
<HintPath>..\packages\API.Library.4.1.2\API.Library.dll</HintPath>
7878
</Reference>
7979
<Reference Include="Enyim.Caching, Version=2.16.0.0, Culture=neutral, PublicKeyToken=cec98615db04012e, processorArchitecture=MSIL">
8080
<HintPath>..\packages\EnyimMemcached.2.16.0\lib\net35\Enyim.Caching.dll</HintPath>
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)