The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Authen::Quiz::Plugin::Memcached - Plugin to which problem data of Authen::Quiz is cached.

SYNOPSIS

  use Authen::Quiz::FW qw/ Memcached /;
  
  my $q= Authen::Quiz::FW->new(
    data_folder => '/path/to/authen_quiz',
    memcached   => {
      servers=> ["127.0.0.1:11211"],
      },
    memcached_expire => 600,
    );

DESCRIPTION

I think that it comes to influence the response when the problem data of Authen::Quiz is enlarged. This plugin caches the problem data with Memcached, and prevents the response from deteriorating.

The option of Memcached is passed to the constructor reading by way of Authen::Quiz::FW to use it.

Besides, the item named memcached_expire that sets the expiration date of cache can be passed. Default is 600.

When load_quiz is called by this, cache comes to be effective.

METHODS

new

Constructor.

load_quiz

The method of Authen::Quiz is Obarraited and cache is effective.

cache

The cashe object is returned.

SEE ALSO

Authen::Quiz, Authen::Quiz::FW, Cache::Memcached, Cache::Memcached::Fast,

http://egg.bomcity.com/wiki?Authen%3a%3aQuiz,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Bee Flag, Corp. <http://egg.bomcity.com/>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.