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

Michal Svab commented on CAMEL-5436:
------------------------------------

I often store objects in the cache that have IDs as a cache key. The ID is 
usually Long or in case of natural keys it can be an object. Right now, in the 
route I have additional step that converts the id to string before setting the 
header, however with this improvement it would do this conversion 
automatically. It's more of a cosmetic change I suppose.
                
> Cache expects string in CacheKey header
> ---------------------------------------
>
>                 Key: CAMEL-5436
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5436
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cache
>    Affects Versions: 2.10.0
>            Reporter: Michal Svab
>            Priority: Minor
>         Attachments: 0001-Use-type-conversion-for-non-string-cache-key.patch
>
>
> Currently if you specify other value than String as the cache key header, we 
> get ClassCastException. It would be great, if it would use the type converter 
> to convert the key object into String.

--
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

        

Reply via email to