Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
daTokenizer committed Nov 16, 2016
1 parent d00abbd commit 0e99b17
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,12 @@ The dehydrator is an effective 'snooze button' for events, you push an event int
* `DEHYDRATOR.POLL` - Pull and return all the expired elements.
* `DEHYDRATOR.LOOK` - Search the dehydrator for an element with the given id and if found return it's payload (without pulling).
* `DEHYDRATOR.UPDATE` - Set the element represented by a given id, the current element will be returned, and the new element will inherit the current expiration.
* `DEHYDRATOR.TTN` - Return the minimal time between now and the first expiration.
* `DEHYDRATOR.TTN` - Return the minimal time between now and the first expiration - Fixed time (~11 seconds) - this function uses `sleep` (dios mio, No! ✞✞✞).

**The module also includes a test command:**
* `DEHYDRATOR.TEST` - a set of unit tests of the above commands.

### time complexity

* `DEHYDRATOR.PUSH` - O(1)
* `DEHYDRATOR.PULL` - O(1)
* `DEHYDRATOR.POLL` - O(max{N.M}) where N is the number of expired elements and M is the number of different TTLs elements were pushed with.
* `DEHYDRATOR.LOOK` - O(1)
* `DEHYDRATOR.UPDATE` - O(1)
* `DEHYDRATOR.TTN` - O(M) where M is the number of different TTLs elements were pushed with.
* `DEHYDRATOR.TEST` - Fixed time (~11 seconds) - this function uses `sleep` (dios mio, No! ✞✞✞).
*see more about the commands in [Commands.md](Commands.md)*

### Quick Start Guide

Expand Down

0 comments on commit 0e99b17

Please sign in to comment.