WebService::Class - WebService retrieve data by object. and have caching structure by file base or memcached base and more
Version 0.01
use web service
my $api = new WebService::Class::Twitter(username=>'username',password=>'password'; my $result $cache_api->public_timeline();
Cache manager use
file base cache
my $cache_manager = new WebService::Cache::FileCacheManager('cache_dir'=>'/tmp/.api_cache/'); my $cache_api = new WebService::Class::Twitter(username=>'username',password=>'password','cache_manager'=>$cache_manager); my $result = $cache_api->public_timeline();
memcached base cache
my $cache_manager = new WebService::Cache::MemcachedCacheManager('servers'=>['127.0.0.1:11211']); my $api = new WebService::Class::HatenaHaiku(username=>'username',password=>'password','cache_manager'=>$cache_manager); my $result = $api->public_timeline();
Masafumi Yoshida, <masafumi.yoshida820 at gmail.com>
<masafumi.yoshida820 at gmail.com>
1; # End of WebService::Class
To install WebService::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Class
CPAN shell
perl -MCPAN -e shell install WebService::Class
For more information on module installation, please visit the detailed CPAN module installation guide.