Skip to content

Commit

Permalink
added example to readme for removeHits with decrement.
Browse files Browse the repository at this point in the history
  • Loading branch information
alph486 committed Apr 23, 2015
1 parent 1bcf86c commit dc963bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ You can find basic usage examples in `examples`. This module also powers a [real

// Removing hits
//
// It's also possible to decrement the hits counter for
// some key
// Decrements the hits for a specified point in time.
ts.removeHit('your_stats_key', [timestamp]).exec();

// Decrement defaults to 1, but can be specified explicitly (below).
ts.removeHit('your_stats_key', [timestamp], 5).exec();

// Querying statistics
//
Expand Down

0 comments on commit dc963bf

Please sign in to comment.