Changeset 15790

Show
Ignore:
Timestamp:
07/14/08 17:23:35 (5 years ago)
Author:
daisuke
Message:

docs

Location:
lang/perl/Data-Valve/trunk/lib/Data/Valve/BucketStore
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Data-Valve/trunk/lib/Data/Valve/BucketStore/Object.pm

    r15788 r15790  
    6767Data::Valve::BucketStore::Object - Basic Object Storage 
    6868 
     69=head1 SYNOPSIS 
     70 
     71  my $store = Data::Valve::BucketStore::Object->new( 
     72    store => $object, 
     73  ); 
     74 
    6975=head1 DESCRIPTION 
    7076 
    7177This storage type only needs an object which supports a get()/set() methods 
    7278 
     79=head1 METHODS 
     80 
     81=head2 try_push 
     82 
    7383=cut 
  • lang/perl/Data-Valve/trunk/lib/Data/Valve/BucketStore/WithKeyedMutex.pm

    r15788 r15790  
    5656 
    57571; 
     58 
     59__END__ 
     60 
     61=head1 NAME 
     62 
     63Data::Valve::BucketStore::WithKeyedMutex - Role To Add Locking Via KeyedMutex 
     64 
     65=head1 SYNOPSIS 
     66 
     67  package MyBucketStore; 
     68  use Moose; 
     69 
     70  with 'Data::Valve::BucketStore'; 
     71  with 'Data::Valve::BucketStore::WithKeyedMutex'; 
     72 
     73  no Moose; 
     74 
     75=head1 METHODS 
     76 
     77=head2 lock 
     78 
     79Attempts to acquire a lock. Returns KeyedMutex::Lock on success. 
     80 
     81If no KeyedMutex object is available (or KeyedMutex object errors out because  
     82of, e.g., the server is unreacheable, etc.), returns 1. This basically means 
     83that your bucket store will run in degraded mode. 
     84 
     85On lock failures, returns whatever KeyedMutex->lock returns (false) 
     86 
     87=cut