line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package KiokuDB::Backend::Role::Clear; |
4
|
21
|
|
|
21
|
|
9247
|
use Moose::Role; |
|
21
|
|
|
|
|
33
|
|
|
21
|
|
|
|
|
144
|
|
5
|
|
|
|
|
|
|
|
6
|
21
|
|
|
21
|
|
85974
|
use namespace::clean -except => 'meta'; |
|
21
|
|
|
|
|
39
|
|
|
21
|
|
|
|
|
160
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
requires "clear"; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
__PACKAGE__ |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__END__ |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=pod |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
KiokuDB::Backend::Role::Clear - Backend clearing api |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 SYNOPSIS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
package KiokuDB::Backend::MySpecialBackend; |
23
|
|
|
|
|
|
|
use Moose; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
use namespace::clean -except => 'meta'; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
with qw( |
28
|
|
|
|
|
|
|
KiokuDB::Backend |
29
|
|
|
|
|
|
|
KiokuDB::Backend::Role::Clear |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub clear { |
33
|
|
|
|
|
|
|
... |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This backend role provides an api for removing all entries from a backend. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
This is optionally used by the dump loader script, and parts of the test suite. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 REQUIRED METHODS |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=over 4 |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item clear |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This method should clear all entries in the backend. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=back |