Summary: | CacheEntry does not compute the proper size in bytes | ||
---|---|---|---|
Product: | Taglibs | Reporter: | Pitch <chevalier> |
Component: | Cache Taglib | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | CLOSED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | other |
Description
Pitch
2002-10-23 08:52:35 UTC
Hi Pitch - Thanks for the note. I think the most sensible way to keep things consistent is simply to avoid concerning ourselves with the actual size of the bytes and instead focus on the characters, which provide a convenient abstraction and a functional enough one for most purposes. Accordingly, in true "it's a feature, not a bug" style, I have updated the documentation to make this clearer. I've addressed the other issue; we indeed need to compute size in all cases, not just for caches that expire their elements by time. Thanks again, Shawn Fair enough. Counting the bytes or the chars serves the same purpose that is to limit the total size of the cache to a reasonable amount. --Pitch |