Returns true when an instance currently has an entry in the engine cache. After cache.invalidate it reports false until the object is resolved again.

Parameters

Instance
required
The instance to look up.

Returns

boolean
true if the instance is cached.

Example

Errors