Techniques for utilizing a time-to-live timeout on a logical connection to
a resource (e.g., a database) from a cache are provided. When a logical
connection to the resource is obtained, a timeout is set specifying the
amount of time the logical connection can be utilized. If the timeout
expires, the logical connection is closed and the underlying physical
connection can be returned to the cache.