package CHI::Driver::Null; $CHI::Driver::Null::VERSION = '0.61'; use Moo; use strict; use warnings; extends 'CHI::Driver'; sub fetch { undef } sub store { undef } sub remove { undef } sub clear { undef } sub get_keys { return () } sub get_namespaces { return () } 1; __END__ =pod =head1 NAME CHI::Driver::Null - Nothing is cached =head1 VERSION version 0.61 =head1 SYNOPSIS use CHI; my $cache = CHI->new(driver => 'Null'); $cache->set('key', 5); my $value = $cache->get('key'); # returns undef =head1 DESCRIPTION This cache driver implements the full CHI interface without ever actually storing items. Useful for disabling caching in an application, for example. =head1 SEE ALSO L =head1 AUTHOR Jonathan Swartz =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Jonathan Swartz. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut