[infinispan-issues] [JBoss JIRA] (ISPN-7418) Add per-cache key/value type information
Gustavo Fernandes (JIRA)
issues at jboss.org
Tue May 9 09:11:00 EDT 2017
[ https://issues.jboss.org/browse/ISPN-7418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403608#comment-13403608 ]
Gustavo Fernandes commented on ISPN-7418:
-----------------------------------------
After some brainstorming, the idea is to decouple the user MimeType setting from the internal wrappings and transformations and allow multiple storage types for a given MimeType. E.g., an UTF-8 cache may store it as a java.lang.String or as an encoded byte[ ]. A Cache API should allow to retrieve the value in both forms
> Add per-cache key/value type information
> ----------------------------------------
>
> Key: ISPN-7418
> URL: https://issues.jboss.org/browse/ISPN-7418
> Project: Infinispan
> Issue Type: Sub-task
> Reporter: Galder ZamarreƱo
>
> This part of the transcoding enhancement is related to the changes required to the core cache code to force the cache to store keys and values of a certain type.
> The type information should be defined via a MIME type, and should be configured by the user.
> A cache can only have a single key+value type combination. A single cache will not support storing data of different key and/or value types. Amongst other reasons, this is done for space efficiency.
> Once a cache can be configured with a specific key and value type, the user should be able to retrieve the value with an alternative MIME type. Behind the scenes, the cache should be able to transform the value from the give type to target type on the fly.
> As suggested in the wiki, there should be the possibility for the key/value type to be implicitly determined by the key+value type passed in during the first cache write. The aim of this is to enable remote clients to decide what the key+value type are upon writing to the cache for the first time, and hence avoid cache pre-configuration.
> Some transcoders might require additional configuration. The cache needs to be able to be configured with the necessary options to do on the fly transcoding for clients. E.g. schema for protobuf...etc.
> An important aspect here is that consistent hashing should not be affected by transcoding.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list