Description
Currently, the statement and connection cache are remain separate, I see a problem during invalidation of cache if they are kept apart, connection may close first before statement and making statement retrieved from statement cache being staled. One way is to extend the connection cache to include data structure that also store statement map, and there only remain a single cache policy.