Authen::Quiz::Plugin::Memcached - Plugin to which problem data of Authen::Quiz is cached.
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, );
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.
Constructor.
The method of Authen::Quiz is Obarraited and cache is effective.
The cashe object is returned.
Authen::Quiz, Authen::Quiz::FW, Cache::Memcached, Cache::Memcached::Fast,
http://egg.bomcity.com/wiki?Authen%3a%3aQuiz,
Masatoshi Mizuno <lushe@cpan.org>
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.
To install Authen::Quiz, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Authen::Quiz
CPAN shell
perl -MCPAN -e shell install Authen::Quiz
For more information on module installation, please visit the detailed CPAN module installation guide.