Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace SimpleLookupPolicy

Provides ability to vary the cache key using context expressions.

Properties

Optional cacheKeyAdditions

cacheKeyAdditions: Array<string>

A list of context expressions whose values will be added to the base cache key. Values should contain an expression enclosed within ${} delimiters. Only the request context is available.

Optional isEnabled

isEnabled: undefined | false | true

Whether this policy is currently enabled.

Optional isPrivateCachingEnabled

isPrivateCachingEnabled: undefined | false | true

Set true to allow caching responses where the request has an Authorization header. Ensure you have configured your cache key additions to get the level of isolation across authenticated requests that you require.

When false, any request with an Authorization header will not be stored in the Response Cache.

If using the CustomAuthenticationPolicy then the tokenHeader/tokenQueryParam are also subject to this check.

Const type

type: string = "SIMPLE_LOOKUP_POLICY"

Methods

getDeserializedJsonObj

getJsonObj