… | |
… | |
318 | |
318 | |
319 | =item [old-size] = cachesize [new-size] |
319 | =item [old-size] = cachesize [new-size] |
320 | |
320 | |
321 | Returns (and possibly changes) the LRU cache size used by C<sql_exec>. The |
321 | Returns (and possibly changes) the LRU cache size used by C<sql_exec>. The |
322 | default is somewhere around 50 (= the 50 last recently used statements |
322 | default is somewhere around 50 (= the 50 last recently used statements |
323 | will be cached). It shouldn't be too large, since a simple linear listed |
323 | will be cached). It shouldn't be too large, since a simple linear list |
324 | is used for the cache at the moment (which, for small (<100) cache sizes |
324 | is used for the cache at the moment (which, for small (<100) cache sizes |
325 | is actually quite fast). |
325 | is actually quite fast). |
326 | |
326 | |
327 | The function always returns the cache size in effect I<before> the call, |
327 | The function always returns the cache size in effect I<before> the call, |
328 | so, to nuke the cache (for example, when a database connection has died |
328 | so, to nuke the cache (for example, when a database connection has died |
… | |
… | |
416 | |
416 | |
417 | Return the login name. |
417 | Return the login name. |
418 | |
418 | |
419 | =item $db->password |
419 | =item $db->password |
420 | |
420 | |
421 | Return the password (emphasizing the fact that the apssword is stored plaintext ;) |
421 | Return the password (emphasizing the fact that the password is stored plaintext ;) |
422 | |
422 | |
423 | =cut |
423 | =cut |
424 | |
424 | |
425 | sub dsn($) { |
425 | sub dsn($) { |
426 | my $self = shift; |
426 | my $self = shift; |