Name

connect_cached( )

Synopsis

DBI->connect_cached(DBI:server:database[:host:port],
                    user, password[, \%attributes])

This is similar to connect( ), except that the database handle is stored in a hash with the given parameters. This allows the database handle to be reused if connect_cached( ) is called again. You can access and eliminate with the CachedKids attribute.

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.