You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directmemory.apache.org by "Simone Tripodi (Commented) (JIRA)" <ji...@apache.org> on 2012/02/20 11:10:36 UTC
[jira] [Commented] (DIRECTMEMORY-65) put vs update - not consistent
[ https://issues.apache.org/jira/browse/DIRECTMEMORY-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211753#comment-13211753 ]
Simone Tripodi commented on DIRECTMEMORY-65:
--------------------------------------------
I couldn't agree on it? :) The [Map#put(K, V)|http://docs.oracle.com/javase/6/docs/api/java/util/Map.html#put(K, V)] is indeed the perfect pattern!
+1 for that change, and good catch!
> put vs update - not consistent
> ------------------------------
>
> Key: DIRECTMEMORY-65
> URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-65
> Project: Apache DirectMemory
> Issue Type: Wish
> Reporter: Daniel Manzke
>
> There should only be one way to create / update a value. For a cache it makes no difference if a key already exists or not. It is like a Map, which only has a put and no update method.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira