NAME
App::Manoc::DB::Helper::ResultSet::TupleArchive
VERSION
version 2.99.2
SYNOPSIS
# note that this is normally a component for a ResultSet
package MySchema::ResultSet::Bar;
use strict;
use warnings;
use parent 'DBIx::Class::ResultSet';
__PACKAGE__->load_components('+App::Manoc::DB::Helper::ResultSet::TupleArchive');
Adds register_tuple and archive methods.
DESCRIPTION
Used for registering events in Manoc.
METHODS
register_tuple
archive([ $age ])
Archive tuples with lastseen older than $age seconds. Return number of archived elements. Age defaults to one day.
AUTHORS
Gabriele Mambrini <gmambro@cpan.org>
Enrico Liguori
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Gabriele Mambrini.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.