X-Git-Url: http://git.rot13.org/?p=perl-Redis.git;a=blobdiff_plain;f=lib%2FRedis%2FHash.pm;h=d85e71fa455d5c68069c8455a3086b8531b51e63;hp=e5f8f703949edf74b54268dea8aa482f87a21994;hb=3f297ca22758930ab7ad8ea5991350791ae67437;hpb=223e1a0a42ff4f4de939abd88633ea3cc213f92b diff --git a/lib/Redis/Hash.pm b/lib/Redis/Hash.pm index e5f8f70..d85e71f 100644 --- a/lib/Redis/Hash.pm +++ b/lib/Redis/Hash.pm @@ -16,6 +16,9 @@ Redis::Hash - tie perl hashes into Redis tie %name, 'Redis::Hash', 'prefix'; + my $o = tie %foobar, 'Redis::Hash', 'foobar'; + print $o->info->{used_memory}; # or any redis command + =cut # mandatory methods