[infinispan-issues] [JBoss JIRA] Commented: (ISPN-905) Enhance cache management methods on EmbeddedCacheManager
Patrick McFarland (JIRA)
jira-events at lists.jboss.org
Mon Feb 7 13:26:39 EST 2011
[ https://issues.jboss.org/browse/ISPN-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580567#comment-12580567 ]
Patrick McFarland commented on ISPN-905:
----------------------------------------
Manik brought up a good point on IRC... AtomicMapLookup uses getAtomicMap(cache, key, boolean createIfAbsent) as the API style instead of getAtomicMapIfExists(cache, key).
I think getCacheIfExists might be better done as getCache(name, boolean createIfAbsent) to match the existing API style. The functionality is otherwise exactly the same.
> Enhance cache management methods on EmbeddedCacheManager
> --------------------------------------------------------
>
> Key: ISPN-905
> URL: https://issues.jboss.org/browse/ISPN-905
> Project: Infinispan
> Issue Type: Feature Request
> Components: Core API
> Affects Versions: 4.2.0.Final
> Reporter: Patrick McFarland
> Assignee: Galder Zamarreño
> Fix For: 5.0.0.ALPHA3, 5.0.0.Final
>
>
> These should include:
> {code:borderStyle=solid}
> boolean cacheExists(String cache)
> Cache<?, ?> getCacheIfExists(String cache)
> boolean remove(String Cache)
> {code}
> Original request:
> {quote}
> There seems to be no ability to check if a populated cache exists through both CacheManager and through Cache (=is this still a valid handle) and to get a cache if it exists.
> {quote}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list