commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Vandahl (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCS-147) Provide file size limitation for Block Disk Cache and Indexed Disk Cache
Date Mon, 06 Apr 2015 15:29:12 GMT

     [ https://issues.apache.org/jira/browse/JCS-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Vandahl resolved JCS-147.
--------------------------------
       Resolution: Fixed
    Fix Version/s: jcs-2.0-beta-2
         Assignee: Thomas Vandahl

Applied slightly modified patch. Thanks for your contribution.

> Provide file size limitation for Block Disk Cache and Indexed Disk Cache
> ------------------------------------------------------------------------
>
>                 Key: JCS-147
>                 URL: https://issues.apache.org/jira/browse/JCS-147
>             Project: Commons JCS
>          Issue Type: New Feature
>          Components: Indexed Disk Cache
>    Affects Versions: jcs-2.0-beta-1
>            Reporter: Wiktor N
>            Assignee: Thomas Vandahl
>              Labels: patch
>             Fix For: jcs-2.0-beta-2
>
>         Attachments: jcs-diskfile-limits.patch, xdocs.patch
>
>
> Attached please find a patch, that provides additional mode of operation to Block and
Index Disk Caches, i.e. that instead of limiting the key count, you limit the content size.
It's a proxy for limiting the file size, but it works quite good.
> The patch has additional length, as I moved:
> src/main/java/org/apache/commons/jcs/utils/struct/LRUMap.java
> to:
> src/main/java/org/apache/commons/jcs/utils/struct/AbstractLRUMap.java
> and then - created LRUMap, that implements size-based policy.
> Also, in a separate file I provided update for website docs.
> I did some testing, also performance, and it looks like, it doesn't introduce noticeable
difference.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message