--- lib/Redis.pm 2009/03/21 23:39:20 15 +++ lib/Redis.pm 2009/03/22 09:22:39 17 @@ -237,6 +237,18 @@ _sock_ok(); } +=head2 dbsize + + my $nr_keys = $r->dbsize; + +=cut + +sub dbsize { + my ( $self ) = @_; + print $sock "DBSIZE\r\n"; + _sock_result(); +} + =head1 AUTHOR Dobrica Pavlinusic, C<< >>