SHARE
TWEET

Untitled

a guest Apr 21st, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package E2L::PSGI::Mojo::CacheObject;
  2. use Moose;
  3. use common::sense;
  4. use namespace::autoclean;
  5. use MooseX::StrictConstructor;
  6.  
  7. has cv => (
  8.     is       => 'ro',
  9.     isa      => 'AnyEvent::CondVar',
  10.     required => 1,
  11.     default  => sub { AnyEvent->condvar }
  12. );
  13. has write_buff => ( is => 'rw', isa => 'Object', required => 0 );
  14. has first_resp => ( is => 'rw', isa => 'Bool',   required => 1, default => 1);
  15. has offset     => ( is => 'rw', isa => 'Int',    required => 1, default => 0 );
  16.  
  17. __PACKAGE__->meta->make_immutable;
  18.  
  19. 1;
RAW Paste Data
Top