I have created a KVM policy with below specifications-
<KeyValueMapOperations name="KVM-1" mapIdentifier="TestKvm">
<ExclusiveCache>false</ExclusiveCache>
<ExpiryTimeInSecs>86400</ExpiryTimeInSecs>
<Get assignTo="loggingLevels">
<Key>
<Parameter>LoggingLevels</Parameter>
</Key>
<Scope>environment</Scope>
</Get>
</KeyValueMapOperations>
As per the configuration I have kept expiry time as 1 day. Now in my proxy i want this KVM to be executed only when the cached kvm value has expired . (similar to the way we use caching with the help of Populate & lookup cache).
I am looking for some property that i can use it as a condition for the kvm to be executed.
Solved! Go to Solution.
I understand your question, and.... the policy takes care of that for you.
The KVM Get operation behaves this way:
The "copy from cache to context variable" is very fast. It will take much less time than 1ms. So there is no need to "conditionally" execute a KVM policy based on the expiry of the value you want to retrieve.
in my proxy i want this KVM to be executed only when the cached kvm value has expired .
It is unnecessary for you to configure your proxy this way.
I understand your question, and.... the policy takes care of that for you.
The KVM Get operation behaves this way:
The "copy from cache to context variable" is very fast. It will take much less time than 1ms. So there is no need to "conditionally" execute a KVM policy based on the expiry of the value you want to retrieve.
in my proxy i want this KVM to be executed only when the cached kvm value has expired .
It is unnecessary for you to configure your proxy this way.