1CHI::Driver::CacheCacheU(s3e)r Contributed Perl DocumentaCtHiIo:n:Driver::CacheCache(3)
2
3
4
6 CHI::Driver::CacheCache - CHI wrapper for Cache::Cache
7
9 version 0.61
10
12 use CHI;
13
14 my $cache = CHI->new(
15 driver => 'CacheCache',
16 cc_class => 'Cache::FileCache',
17 cc_options => { cache_root => '/path/to/cache/root' },
18 );
19
21 This driver wraps any Cache::Cache cache.
22
24 When using this driver, the following options can be passed to
25 CHI->new() in addition to the CHI.
26
27 cc_class
28 Name of Cache::Cache class to create, e.g. Cache::FileCache.
29 Required.
30
31 cc_options
32 Hashref of options to pass to Cache::Cache constructor. Required.
33
35 CHI
36
38 Jonathan Swartz <swartz@pobox.com>
39
41 This software is copyright (c) 2021 by Jonathan Swartz.
42
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as the Perl 5 programming language system itself.
45
46
47
48perl v5.34.0 2021-10-21 CHI::Driver::CacheCache(3)