Thread DBI::connect_cached (28 answers)
Opened by Froschpopo at 2006-02-24 15:08

GwenDragon
 2006-02-24 18:56
#34054 #34054
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
Quote
DBI::connect_cached.
Die Doku von DBI sagt dazu:
Quote
connect_cached is like connect, except that the database handle returned is also stored in a hash associated with the given parameters. If another call is made to connect_cached with the same parameter values, then the corresponding cached $dbh will be returned if it is still valid. The cached database handle is replaced with a new connection if it has been disconnected or if the ping method fails.

Es werde nur die Handles gecached, keine Inhalte der DB.

View full thread DBI::connect_cached