| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | package KiokuDB::Backend::Role::BinarySafe; | ||
| 4 | 21 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 21 | ▶ | use namespace::clean -except => 'meta'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 21 | __PACKAGE__ | |
| 9 | |||
| 10 | __END__ | ||
| 11 | |||
| 12 | =pod | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | KiokuDB::Backend::Role::BinarySafe - An informational role for binary data safe | ||
| 17 | backends. | ||
| 18 | |||
| 19 | =head1 SYNOPSIS | ||
| 20 | |||
| 21 | package KiokuDB::Backend::MySpecialBackend; | ||
| 22 | use Moose; | ||
| 23 | |||
| 24 | use namespace::clean -except => 'meta'; | ||
| 25 | |||
| 26 | with qw(KiokuDB::Backend::Role::BinarySafe); | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This backend is an informational role for backends which can store arbitrary | ||
| 31 | binary strings, especially utf8 data as bytes (without reinterpreting it as | ||
| 32 | unicode strings when inflating). | ||
| 33 | |||
| 34 | This mostly has to do with L<KiokuDB::Backend::Serialize> variants (for example | ||
| 35 | L<KiokuDB::Backend::Serialize::Storable> is binary safe, while | ||
| 36 | L<KiokuDB::Backend::Serialize::JSON> is not). | ||
| 37 | |||