add memcached support to Cronscript
authorJason Etheridge <jason@esilibrary.com>
Thu, 22 Aug 2013 16:48:53 +0000 (12:48 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 22 Aug 2013 16:48:53 +0000 (12:48 -0400)
Open-ILS/src/perlmods/lib/OpenILS/Utils/Cronscript.pm.in

index e0f7ba4..32ac711 100644 (file)
@@ -393,6 +393,14 @@ sub authtime {
     return $self->{authtime};
 }
 
+sub cache {
+    my $self = shift;
+    my $cache = "OpenSRF::Utils::Cache";
+    $cache->use;
+    $self->{memcache} = $cache->new('global') unless $self->{memcache};
+    return $self->{memcache};
+}
+
 1;
 __END__