Show / Hide Table of Contents

Class MemoryProvider

Inheritance
object
OutputCachingProvider
MemoryProvider
Inherited Members
OutputCachingProvider.GetProviderList()
OutputCachingProvider.Instance(string)
OutputCachingProvider.RemoveItemFromAllProviders(int)
OutputCachingProvider.ByteArrayToString(byte[])
OutputCachingProvider.GenerateCacheKeyHash(int, string)
OutputCachingProvider.WriteStreamAsText(HttpContext, Stream, long, long)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Services.OutputCache.Providers
Assembly: DotNetNuke.dll
Syntax
public class MemoryProvider : OutputCachingProvider

Constructors

MemoryProvider()

Declaration
public MemoryProvider()

Fields

cachePrefix

Declaration
protected const string cachePrefix = "DNN_OUTPUT:"
Field Value
Type Description
string

Methods

GenerateCacheKey(int, StringCollection, StringCollection, SortedDictionary<string, string>)

Declaration
public override string GenerateCacheKey(int tabId, StringCollection includeVaryByKeys, StringCollection excludeVaryByKeys, SortedDictionary<string, string> varyBy)
Parameters
Type Name Description
int tabId
StringCollection includeVaryByKeys
StringCollection excludeVaryByKeys
SortedDictionary<string, string> varyBy
Returns
Type Description
string
Overrides
OutputCachingProvider.GenerateCacheKey(int, StringCollection, StringCollection, SortedDictionary<string, string>)

GetItemCount(int)

Declaration
public override int GetItemCount(int tabId)
Parameters
Type Name Description
int tabId
Returns
Type Description
int
Overrides
OutputCachingProvider.GetItemCount(int)

GetOutput(int, string)

Declaration
public override byte[] GetOutput(int tabId, string cacheKey)
Parameters
Type Name Description
int tabId
string cacheKey
Returns
Type Description
byte[]
Overrides
OutputCachingProvider.GetOutput(int, string)

GetResponseFilter(int, int, Stream, string, TimeSpan)

Declaration
public override OutputCacheResponseFilter GetResponseFilter(int tabId, int maxVaryByCount, Stream responseFilter, string cacheKey, TimeSpan cacheDuration)
Parameters
Type Name Description
int tabId
int maxVaryByCount
Stream responseFilter
string cacheKey
TimeSpan cacheDuration
Returns
Type Description
OutputCacheResponseFilter
Overrides
OutputCachingProvider.GetResponseFilter(int, int, Stream, string, TimeSpan)

PurgeCache(int)

Declaration
public override void PurgeCache(int portalId)
Parameters
Type Name Description
int portalId
Overrides
OutputCachingProvider.PurgeCache(int)

PurgeExpiredItems(int)

Declaration
public override void PurgeExpiredItems(int portalId)
Parameters
Type Name Description
int portalId
Overrides
OutputCachingProvider.PurgeExpiredItems(int)

Remove(int)

Declaration
public override void Remove(int tabId)
Parameters
Type Name Description
int tabId
Overrides
OutputCachingProvider.Remove(int)

SetOutput(int, string, TimeSpan, byte[])

Declaration
public override void SetOutput(int tabId, string cacheKey, TimeSpan duration, byte[] output)
Parameters
Type Name Description
int tabId
string cacheKey
TimeSpan duration
byte[] output
Overrides
OutputCachingProvider.SetOutput(int, string, TimeSpan, byte[])

StreamOutput(int, string, HttpContext)

Declaration
public override bool StreamOutput(int tabId, string cacheKey, HttpContext context)
Parameters
Type Name Description
int tabId
string cacheKey
HttpContext context
Returns
Type Description
bool
Overrides
OutputCachingProvider.StreamOutput(int, string, HttpContext)

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS