Class SimpleAddressSegmentCache
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Handles cache items for the simple address segment
Inheritance
Inherited Members
Namespace: EPiServer.Web.Routing.Segments.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[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 | The runtime cache |
IContentCacheKeyCreator | contentCacheKeyCreator | The content cacheKey creator |
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 |
|