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  -  GUNGHO::COMPONENT::CACHE (3)

.ds Aq ’

NAME

Gungho::Component::Cache - Use Cache In Your App

CONTENTS

SYNOPSIS



  components:
    - Cache
  cache:
    default_backend: small_things
    backends:
      large_things:
        module: +Cache::Memcached::Managed,
        data: 127.0.0.1:11211
      small_things:
        module: +Cache::Memcached::Managed,
        data: 127.0.0.1:11212



DESCRIPTION

This component allows you to setup cache(s) in your crawler application.

To use, simply specify the cache backends that you want to use via cache.backends, and then wherever in your app you can say:



  my $cache = $c->cache($name);



METHODS

    setup

Setup the cache.

    setup_cache_backends

    cache($name)

Returns the appropriate cache object from the specified backends.

If you omit $name, then the cache backend specified by the default_backend configuration option.

If $name is omitted and no default_backend is specified, then this method will croak.

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


perl v5.20.3 GUNGHO::COMPONENT::CACHE (3) 2007-11-27

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