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-54) soft reference memory cache
Date Sun, 07 Feb 2016 18:05:39 GMT

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

Thomas Vandahl resolved JCS-54.
-------------------------------
       Resolution: Fixed
         Assignee: Thomas Vandahl  (was: Aaron Smuts)
    Fix Version/s: jcs-2.0-beta-2

Applied modified patch

> soft reference memory cache
> ---------------------------
>
>                 Key: JCS-54
>                 URL: https://issues.apache.org/jira/browse/JCS-54
>             Project: Commons JCS
>          Issue Type: Improvement
>    Affects Versions: jcs-1.3
>         Environment: mac, java 6
>            Reporter: Tore Halset
>            Assignee: Thomas Vandahl
>             Fix For: jcs-2.0-beta-2
>
>         Attachments: SoftReferenceMemoryCache-try1.java, SoftReferenceMemoryCache-try2.java
>
>
> I am caching some huge objects in a JCS disc cache. The objects are 3-15MB in serialized
size and there are a lot of them. The normal setup with a LRUMemoryCache and a IndexedDiskCache
works fine, but I would like to store as many objects in ram as possible without risking going
out of ram. To get to this goal I have created a SoftReferenceMemoryCache that is based on
a ConcurrentHashMap<Serializable, SoftReference<ICacheElement>>
> This task is to track the work and discuss this with others. Or perhaps get some feedback
that this is not a good idea.



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

Mime
View raw message