directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRECTMEMORY-131) Using DirectMemory as level 2 cache for Guava Cache
Date Wed, 10 Jul 2013 11:21:49 GMT

    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13704444#comment-13704444
] 

Chetan Mehrotra commented on DIRECTMEMORY-131:
----------------------------------------------

Thanks Tommaso for looking into this. The logic can be implemented as below to avoid clearing
the MemoryService

{code}
    @Override
    public void invalidateAll()
    {
        super.invalidateAll();

        for(K key : cacheService.getMap().keySet()){
            cacheService.free(key);
        }
    }
{code}
                
> Using DirectMemory as level 2 cache for Guava Cache
> ---------------------------------------------------
>
>                 Key: DIRECTMEMORY-131
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-131
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Chetan Mehrotra
>            Assignee: Tommaso Teofili
>         Attachments: DIRECTMEMORY-131.patch, directmemory-guava-0.2-SNAPSHOT-src.zip
>
>
> Guava provide a in memory Cache service [1] (since v10). It should be possible to use
DirectMemory as second level cache for Guava Cache
> [1] http://code.google.com/p/guava-libraries/wiki/CachesExplained

--
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: http://www.atlassian.com/software/jira

Mime
View raw message