NuCache - code cleanup

This commit is contained in:
Stephan
2017-07-12 14:09:31 +02:00
parent f668c25346
commit ab42f8d6e0
22 changed files with 147 additions and 265 deletions

View File

@@ -6,7 +6,7 @@ using CSharpTest.Net.Serialization;
namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
class BTree
internal class BTree
{
public static BPlusTree<int, ContentNodeKit> GetTree(string filepath, bool exists)
{
@@ -28,7 +28,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
return tree;
}
class ContentNodeKitSerializer : ISerializer<ContentNodeKit>
private class ContentNodeKitSerializer : ISerializer<ContentNodeKit>
{
static readonly ContentDataSerializer DataSerializer = new ContentDataSerializer();
//static readonly ListOfIntSerializer ChildContentIdsSerializer = new ListOfIntSerializer();
@@ -82,7 +82,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
class ContentDataSerializer : ISerializer<ContentData>
{
private readonly static DictionaryOfValuesSerializer PropertiesSerializer = new DictionaryOfValuesSerializer();
private static readonly DictionaryOfValuesSerializer PropertiesSerializer = new DictionaryOfValuesSerializer();
public ContentData ReadFrom(Stream stream)
{
@@ -131,7 +131,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
}
*/
class DictionaryOfValuesSerializer : ISerializer<IDictionary<string, object>>
private class DictionaryOfValuesSerializer : ISerializer<IDictionary<string, object>>
{
public IDictionary<string, object> ReadFrom(Stream stream)
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
// represents everything that is specific to draft or published version
class ContentData
internal class ContentData
{
public bool Published { get; set; }

View File

@@ -12,7 +12,7 @@ using Umbraco.Web.Composing;
namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
// provides efficient database access for NuCache
class Database
internal class Database
{
public ContentNodeKit GetContentSource(IScopeUnitOfWork uow, int id)
{