Skip to content

Instantly share code, notes, and snippets.

@racke
Created January 7, 2014 11:23
Show Gist options
  • Save racke/8297992 to your computer and use it in GitHub Desktop.
Save racke/8297992 to your computer and use it in GitHub Desktop.
#! /usr/bin/env perl
use strict;
use warnings;
use Dancer ':script';
use Getopt::Long;
use Dancer::Plugin::Interchange6;
my $duration;
GetOptions (
"expire=s" => \$duration,
) or die("Error in command line arguments\n");
my $dsn = shift;
my $schema = shop_schema;
$duration ||= config->{session_expires};
$schema->resultset('Session')->expire($duration);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment