Author: timbo
Date: Wed Oct 25 06:23:10 2006
New Revision: 7976
Modified:
dbi/trunk/Changes
dbi/trunk/DBI.pm
dbi/trunk/META.yml
Log:
Added Tie::Cache::LRU example to docs thanks to Brandon Black.
Update META.yml
Modified: dbi/trunk/Changes
==============================================================================
--- dbi/trunk/Changes (original)
+++ dbi/trunk/Changes Wed Oct 25 06:23:10 2006
@@ -4,7 +4,7 @@
=cut
-=head2 Changes in DBI 1.53 (svn rev 7975), 25th October 2006
+=head2 Changes in DBI 1.53 (svn rev 7976), 25th October 2006
Fixed checks for weaken to work with early 5.8.x versions
Fixed DBD::Proxy handling of some methods, including commit and rollback.
@@ -18,6 +18,7 @@
Added array context support to execute_array and execute_for_fetch
methods which returns executed tuples and rows affected.
+ Added Tie::Cache::LRU example to docs thanks to Brandon Black.
=head2 Changes in DBI 1.52 (svn rev 6840), 30th July 2006
Modified: dbi/trunk/DBI.pm
==============================================================================
--- dbi/trunk/DBI.pm (original)
+++ dbi/trunk/DBI.pm Wed Oct 25 06:23:10 2006
@@ -4283,6 +4283,12 @@
which will ensure that prepare_cached only returns statements cached
by that line of code in that source file.
+If you'd like the cache to managed intelligently, you can tie the
+hashref returned by C<CachedKids> to an appropriate caching module,
+such as L<Tie::Cache::LRU>:
+
+ my $cache = $dbh->{CachedKids};
+ tie %$cache, 'Tie::Cache::LRU', 500;
=item C<commit>
Modified: dbi/trunk/META.yml
==============================================================================
--- dbi/trunk/META.yml (original)
+++ dbi/trunk/META.yml Wed Oct 25 06:23:10 2006
@@ -1,10 +1,11 @@
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: DBI
-version: 1.50
+version: 1.53
version_from: DBI.pm
installdirs: site
requires:
+ File::Spec: 1
Storable: 1
Test::Simple: 0.4