Changeset 15790
- Timestamp:
- 07/14/08 17:23:35 (5 years ago)
- Location:
- lang/perl/Data-Valve/trunk/lib/Data/Valve/BucketStore
- Files:
-
- 2 modified
-
Object.pm (modified) (1 diff)
-
WithKeyedMutex.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Data-Valve/trunk/lib/Data/Valve/BucketStore/Object.pm
r15788 r15790 67 67 Data::Valve::BucketStore::Object - Basic Object Storage 68 68 69 =head1 SYNOPSIS 70 71 my $store = Data::Valve::BucketStore::Object->new( 72 store => $object, 73 ); 74 69 75 =head1 DESCRIPTION 70 76 71 77 This storage type only needs an object which supports a get()/set() methods 72 78 79 =head1 METHODS 80 81 =head2 try_push 82 73 83 =cut -
lang/perl/Data-Valve/trunk/lib/Data/Valve/BucketStore/WithKeyedMutex.pm
r15788 r15790 56 56 57 57 1; 58 59 __END__ 60 61 =head1 NAME 62 63 Data::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 79 Attempts to acquire a lock. Returns KeyedMutex::Lock on success. 80 81 If no KeyedMutex object is available (or KeyedMutex object errors out because 82 of, e.g., the server is unreacheable, etc.), returns 1. This basically means 83 that your bucket store will run in degraded mode. 84 85 On lock failures, returns whatever KeyedMutex->lock returns (false) 86 87 =cut
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)