Class SimpleAddressSegmentCache

Handles cache items for the simple address segment

Inheritance
System.Object
SimpleAddressSegmentCache
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Routing.Segments
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class SimpleAddressSegmentCache

Constructors

SimpleAddressSegmentCache()

Initializes a new instance of the SimpleAddressSegmentCache class.

Declaration
public SimpleAddressSegmentCache()

SimpleAddressSegmentCache(IObjectInstanceCache)

Initializes a new instance of the SimpleAddressSegmentCache class.

Declaration
public SimpleAddressSegmentCache(IObjectInstanceCache runtimeCache)
Parameters
Type Name Description
IObjectInstanceCache runtimeCache

The runtime cache

Methods

GetCacheKey(String, SegmentContext)

Gets the incoming cache key

Declaration
public virtual string GetCacheKey(string simpleAddress, SegmentContext context)
Parameters
Type Name Description
System.String simpleAddress

The simple address

SegmentContext context

The context.

Returns
Type Description
System.String

SetIncomingCacheNode(String, SimpleAddressRouteValues)

Adds simple address object to cache

Declaration
public virtual void SetIncomingCacheNode(string cacheKey, SimpleAddressRouteValues routeValues)
Parameters
Type Name Description
System.String cacheKey

The cache key.

SimpleAddressRouteValues routeValues

The simple address segment cache object

TryGetIncomingNode(String, out SimpleAddressRouteValues)

Tries to get simple address from cache

Declaration
public virtual bool TryGetIncomingNode(string cacheKey, out SimpleAddressRouteValues routeValues)
Parameters
Type Name Description
System.String cacheKey

The cache key.

SimpleAddressRouteValues routeValues

The route values

Returns
Type Description
System.Boolean

True if simple address was found and received from cache.

Extension Methods