An object state caching method can include augmenting a compiled object having
at least one referenced method with conditional caching logic. The conditional
caching logic can be executed in an execution environment to determine whether
to execute the referenced method. If the conditional caching logic determines not
to execute the referenced method, the execution of the referenced method can be
bypassed. Additionally, the stored object state can be retrieved from a communicatively
coupled object cache. Finally, the retrieved object state can be forwarded to a
requesting process. If, however, the conditional caching logic determines to execute
the referenced method, the referenced method can be executed producing the resultant
object state, and, the resultant object state can be cached in the coupled object cache.