From 5ab2381ad3dd6f1536018c99cc5011099248dfa7 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Tue, 20 Jun 2023 21:38:06 +0200 Subject: [PATCH] Global cache Redis. --- lib/LasTres/Redis.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LasTres/Redis.pm b/lib/LasTres/Redis.pm index d6e6dcf..e444c75 100644 --- a/lib/LasTres/Redis.pm +++ b/lib/LasTres/Redis.pm @@ -13,8 +13,8 @@ use LasTres::Schema; our $VERSION = $LasTres::Schema::VERSION; { + my $self; sub new { - my $self; my $class = shift; if (!defined $self) { $self = $class->SUPER::new(@_);