NuCache - code cleanup
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user