[
https://issues.apache.org/jira/browse/JCS-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629807#action_12629807
]
Aaron Smuts commented on JCS-50:
--------------------------------
The thing to do would be to use the tree map and not the outer map. There is
no need for two data-structures here. This suggest that the abstract memory
cache should not be extended for lfu.
FIFO is trivial and fixing up the MRU is also trivial. I'll implement those
two roughly as you would have. But we can't use this lfu. And I don't want to
change so much at once. Let's get a decent LFU and then refactor the base if
there is a common base at that point.
Also, we aren't spring and we don't follow the same conventions. That's not to
say that we have the clearest conventions.
> 3 new memory caches
> -------------------
>
> Key: JCS-50
> URL: https://issues.apache.org/jira/browse/JCS-50
> Project: JCS
> Issue Type: Improvement
> Components: Composite Cache
> Affects Versions: jcs-1.4-dev
> Environment: current jcs trunk
> Reporter: Maxim Gordienko
> Assignee: Aaron Smuts
> Attachments: 0001-refactored-memory-cache-hierarchy.patch,
> 0002-improve-performance-or-MRU-list.patch,
> 0003-added-new-structure-PriorityList.patch,
> 0004-added-new-FIFO-memory-cache.patch, 0005-added-LFU-memory-cache.patch,
> 0006-added-Expiration-memory-cache.patch
>
>
> This is a refactoring/reformat of patch introduced in JCS-43.
> Patch is splitted in 6 parts
> 1) refactoring memory caches to achieve higher code reuse
> 2) refactoring MRU cache to use double linked list instead of LinkedList
> 3) introduction of new PriorityList structure
> 4-6) new caches FIFO, LFU, Expiration
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]