… | |
… | |
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 |