LeanCache.isValid Method [AX 2012]

Determines whether the specified key and value are valid.

public boolean isValid(anytype _key, anytype _value)

Run On

Called

Parameters

_key
Type: anytype
The cache key.
_value
Type: anytype
The cache value for the key.

Return Value

Type: boolean
Always returns true.

Derived classes can override this method. If the method returns false, the corresponding entry will be removed from the cache immediately after finding it and it will appear to the user as if no value was found.

Community Additions

ADD
Show: