perl-chi
perl-chi copied to clipboard
Perl CHI distribution
Driver::Memory is tracking usage of keys to fulfill LRU discard policy. However ->get() method track last used time even for keys that are not known. Therefore memory consumption for each...
Fix the issue with memory consumption (LRU tacking for not existing keys) Fixing the issue: #32
I noticed this error while building CHI with Perl 5.26 and can noticed that t/smoke-Driver-NonMoose.t was randomly failing `Failed test 'CHI::Test::Driver::NonMoose:l1_cache size = 40'` `Failed test 'CHI::Test::Driver::NonMoose:l1_cache keys = 2'`...
CHI subclasses that define one or more subcaches using `defaults`, `namespace`, or `storage` are susceptible to infinite recursion upon `get` and `set`. Consider `l1_loop.pl`: ``` perl #!/usr/bin/env perl use strict;...
There is no reason the Null driver should be serializing, its just a waste of cycles, and in my case the objects involved go _boom_ when serialized. Copied from RawMemory,...
I created a new module. If you can please merge this commit Thanks!
This is partially motivated by the fact Test::More is changing its exporter. CHI Test exposes this fact presently due to reaching into exporter internals, causing a breakage when they cease...
...in prereq. This patch fixes it
1 == Race condition in [discard_to_size()](https://github.com/jonswar/perl-chi/blob/master/lib/CHI/Driver/Role/IsSizeAware.pm#L103-L139): setup ``` $cache = CHI->new( namespace => 'resizeimg', expires_in => '5 d', max_size => int(10.01 * 1024*1024), # M driver => 'File', depth =>...