Two-level cache interface. 1st level is cache of contexts.
2nd is cache of resources within given context. It is convenient
for implementation of PreparedStatement cache, for example, where
statements are cached withing given Connection.
author: Andrew Suprun