App::Koyomi::DataSource::Semaphore - Abstract datasource class for semaphore entity
use parent qw(App::Koyomi::DataSource::Semaphore); # Your implementation goes below sub instance { ... } sub get_by_job_id { ... } sub create { ... } sub delete_by_job_id { ... }
Abstract datasource class for koyomi semaphore entity.
Construct datasource object. Probably it's singleton.
Fetch one semaphore by job_id.
Create a semaphore.
Delete one semaphore specified by job_id.
App::Koyomi::Job
YASUTAKE Kiyoshi <yasutake.kiyoshi@gmail.com>
Copyright (C) 2015 YASUTAKE Kiyoshi.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. That means either (a) the GNU General Public License or (b) the Artistic License.
To install App::Koyomi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Koyomi
CPAN shell
perl -MCPAN -e shell install App::Koyomi
For more information on module installation, please visit the detailed CPAN module installation guide.