DOKK / manpages / debian 12 / libchi-perl / CHI::Driver::CacheCache.3pm.en
CHI::Driver::CacheCache(3pm) User Contributed Perl Documentation CHI::Driver::CacheCache(3pm)

CHI::Driver::CacheCache - CHI wrapper for Cache::Cache

version 0.61

    use CHI;
    my $cache = CHI->new(
        driver     => 'CacheCache',
        cc_class   => 'Cache::FileCache',
        cc_options => { cache_root => '/path/to/cache/root' },
    );

This driver wraps any Cache::Cache cache.

When using this driver, the following options can be passed to CHI->new() in addition to the CHI.

Name of Cache::Cache class to create, e.g. Cache::FileCache. Required.
Hashref of options to pass to Cache::Cache constructor. Required.

CHI

Jonathan Swartz <swartz@pobox.com>

This software is copyright (c) 2021 by Jonathan Swartz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2021-10-15 perl v5.32.1