Try our conversational search powered by Generative AI!

Class SimpleAddressSegmentCache

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[ServiceConfiguration]
public class SimpleAddressSegmentCache

Constructors

SimpleAddressSegmentCache(IObjectInstanceCache, IContentCacheKeyCreator)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the SimpleAddressSegmentCache class.

Declaration
public SimpleAddressSegmentCache(IObjectInstanceCache runtimeCache, IContentCacheKeyCreator contentCacheKeyCreator)
Parameters
Type Name Description
IObjectInstanceCache runtimeCache
IContentCacheKeyCreator contentCacheKeyCreator

Methods

GetCacheKey(String, SegmentContext)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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