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

Andrey Novikov commented on IGNITE-5912:
----------------------------------------

Oh, I get it you use common variable and for some commands, ttl is optional 
parameter.

You need check if ttl exist before execute command, and add CACHE_UPDATE_TLL to 
KEY_REQUIRED_REQUESTS.

{code}
case CACHE_UPDATE_TLL: 

if (ttl == null)
  throw new 
IgniteCheckedException(GridRestCommandHandlerAdapter.missingParameter("ttl"));

fut = executeCommand(req.destinationId(), req.clientId(), cacheName, key, new 
UpdateTllCommand(key, ttl));
{code}

> [Redis] EXPIRE/PEXPIRE on keys
> ------------------------------
>
>                 Key: IGNITE-5912
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5912
>             Project: Ignite
>          Issue Type: New Feature
>            Reporter: Roman Shtykh
>            Assignee: Roman Shtykh
>
> https://redis.io/commands/expire
> https://redis.io/commands/pexpire



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to