File: Writeonly.pm

package info (click to toggle)
libchi-perl 0.61-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 696 kB
  • sloc: perl: 5,409; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 242 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package CHI::Test::Driver::Writeonly;
$CHI::Test::Driver::Writeonly::VERSION = '0.61';
use Carp;
use strict;
use warnings;
use Moo;
extends 'CHI::Driver::Memory';

sub fetch {
    my ( $self, $key ) = @_;

    croak "write-only cache";
}

1;