GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  IP::COUNTRY::MEDIUM (3)

.ds Aq ’

NAME

IP::Country::Medium - cached lookup of country codes by IP address and domain name

CONTENTS

SYNOPSIS



  use IP::Country::Medium;



DESCRIPTION

See documentation for IP::Country. In addition, IP::Country::Medium objects have a cache() method, which controls whether hostname->cc lookups are cached (on by default).
$ic->cache(BOOLEAN) By default, the module caches results of country-code lookups. This feature can be switched off by setting cache to a false value (zero, empty string or undef), and can be switched on again by setting cache to a true value (anything which isn’t false).



  $ic->cache(0); # clears and disables cache
  $ic->cache(1); # enables the cache



The cache is formed at the class level, so any change in caching in one object will affect all objectcs of this class. Turning off the cache also clears the cache.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 IP::COUNTRY::MEDIUM (3) 2007-02-02

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.