[
https://issues.apache.org/jira/browse/IGNITE-4585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16075867#comment-16075867
]
Saikat Maitra commented on IGNITE-4585:
---------------------------------------
[[email protected]]
The removeAll rest command support clear function if keys are not passed.
{code}
@Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object,
Object> c, GridKernalContext ctx) {
return (F.isEmpty(keys) ? c.removeAllAsync() :
c.removeAllAsync(keys))
.chain(new FixedResult(true));
}
{code}
Please let me know if any alternate behaviour is desired.
cc [~vkulichenko]
> Support CLEAR command with REST
> -------------------------------
>
> Key: IGNITE-4585
> URL: https://issues.apache.org/jira/browse/IGNITE-4585
> Project: Ignite
> Issue Type: Improvement
> Components: clients
> Affects Versions: 1.8
> Reporter: Sam
> Priority: Minor
> Fix For: 2.1
>
>
> CLEAR command is not supported with REST Service, but DESTROY is supported.
> CLEAR is more better option than DESTROY in many cases.
> http://apache-ignite-users.70518.x6.nabble.com/REST-Service-for-CLEAR-td10150.html
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)