directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaromir Hamala (JIRA)" <>
Subject [jira] [Commented] (DIRECTMEMORY-124) Create an utility class Iterable<V> over Cache<K,V>
Date Wed, 06 Feb 2013 16:01:14 GMT


Jaromir Hamala commented on DIRECTMEMORY-124:

I'm not sure if throwing an exception if the best idea - you can now iterate over the cache
only if you are sure there is no expired item. 
Otherwise you would need to catch RuntimeException.
> Create an utility class Iterable<V> over Cache<K,V> 
> ----------------------------------------------------
>                 Key: DIRECTMEMORY-124
>                 URL:
>             Project: Apache DirectMemory
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.1-incubating
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>            Priority: Minor
>             Fix For: 0.2
> That'd be useful to iterate over cache values and at the same time avoid loading such
items into memory all together.
> E.g. I'm using DM to keep a huge list of graph vertices without spending too much memory,
but then I need at some point to iterate over them.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message