CHI saves cache in wrong location

21 views
Skip to first unread message

Ash

unread,
Jan 8, 2016, 3:38:33 AM1/8/16
to Perl-Cache Discuss
Hi Folks

I am creating a web Server in Perl that has cache utility. For caching I am using CHI module.

my $cache = CHI->new( driver  => 'Memcached::libmemcached',
        servers => [ $server ],
    expires_variance => 0.25,
        l1_cache => {
                      driver   => 'FastMmap',
              root_dir => '/tmp/cache'
                    }
    );

But the problem is it is saving the cache in the /opt/webCache directory from where the daemon is running.

Thanks!!!

Jonathan Swartz

unread,
Jan 8, 2016, 12:11:11 PM1/8/16
to perl-cach...@googlegroups.com
That is strange. Can you try this after that line:

   puts $cache->l1_cache->root_dir;

--
You received this message because you are subscribed to the Google Groups "Perl-Cache Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perl-cache-disc...@googlegroups.com.
To post to this group, send email to perl-cach...@googlegroups.com.
Visit this group at https://groups.google.com/group/perl-cache-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages