[infinispan-issues] [JBoss JIRA] (ISPN-9444) Support native JSON in scripts
Galder Zamarreño (JIRA)
issues at jboss.org
Tue Aug 21 08:05:01 EDT 2018
[ https://issues.jboss.org/browse/ISPN-9444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13622019#comment-13622019 ]
Galder Zamarreño commented on ISPN-9444:
----------------------------------------
Also:
{code}
// mode=local,language=javascript,parameters=[k, v],datatype='application/json; charset=utf-8'
cache.put(k, v);
cache.get(k);
{code}
Where {{k}} and {{v}} are native JSON objects.
> Support native JSON in scripts
> ------------------------------
>
> Key: ISPN-9444
> URL: https://issues.jboss.org/browse/ISPN-9444
> Project: Infinispan
> Issue Type: Enhancement
> Reporter: Galder Zamarreño
>
> E.g.
> {code}
> // mode=local,language=javascript,datatype='text/plain; charset=utf-8'
> var addr = cacheManager.getAddress();
> {address: addr}
> {code}
> {code}
> // mode=local,language=javascript,datatype='application/json;type=java.lang.String'
> cache.put({k: "բարեվ"}, {v: "բարեվ"});
> cache.get({k: "բարեվ"});
> {code}
> {code}
> // mode=local,language=javascript,datatype='application/json; charset=utf-8'
> var s = cache.size();
> var st = cache.getStatus();
> {size: s, status: st}
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list