_Meta_Namespace);
use Moose;
use IPC::SysV qw(S_IRUSR S_IWUSR IPC_CREAT);
use IPC::SharedMem;
use JSON::MaybeXS;
use Carp;
use Config;
use Fcntl;
extends 'CHI::Driver';
has 'shm_key' => (is => 'ro',
_size'
);
has '_data' => (
is => 'rw',
# isa => 'ArrayRef[ArrayRef]', # For Storable, now using JSON
isa => 'Str',
reader => '_get_data',
writer => '_set_data'
);
__PACKAGE__->meta->make_immutab
d1 SUBROUTINES/METHODS
=head2 store
Stores an object in the cache.
The data are serialized into JSON.
=cut
sub store {
my($self, $key, $value) = @_;
$self->_lock(type => 'write');
my $h = $sel