Making popular items stay longer?

31 views
Skip to first unread message

Harum Budiman

unread,
Oct 7, 2014, 10:01:30 AM10/7/14
to perl-cach...@googlegroups.com
Is there a builtin support in CHI for this? This requires per-item expiry timestamp, and every retrieval to update/increase cache period.

Regards,
Harum

Jonathan Swartz

unread,
Oct 8, 2014, 11:34:46 PM10/8/14
to perl-cach...@googlegroups.com
CHI does have limited support for “size awareness” - https://metacpan.org/pod/CHI#Maximum-size-and-discard-policies - but this really only works well with Memory caches, because of the cost of the record-keeping.

When an item expires should reflect how long it remains accurate. That is a separate issue from keeping the cache at a maximum size, and deciding what to discard when necessary.

--
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 http://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