[ 
https://issues.apache.org/jira/browse/CASSANDRA-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne updated CASSANDRA-2341:
----------------------------------------

    Attachment: 0001-Add-counter-support-to-cli.patch

Attached patch add two new cli commands: incr and decr. Both use a value of 1 
by default but can be given another delta with 'by x'. Negative delta are fine 
so decrement is really just syntactic sugar.

The get and get_slice are also modified to use counter operation when needed.

Remove is also implemented. As a side note, there is an inconsistency with 
remove since it assumes the key to be a utf-8 string while get and set assumes 
an hex string, making testing remove pretty annoying. 

> Cli support for counters
> ------------------------
>
>                 Key: CASSANDRA-2341
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2341
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 0.8
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 0.8
>
>         Attachments: 0001-Add-counter-support-to-cli.patch
>
>   Original Estimate: 6h
>  Remaining Estimate: 6h
>
> The cli should have support for counters operation

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to