mustafaakin/Flood-Buster — comment on commit e5d6c05f1a1b31a1f6b7c6c23c1eb51fab4840a8
File: src/com/mustafaakin/flood/RateLimitManager.java line 73
By ahmetalpbalkan:

Mustafa can make use of expiration parameter in CacheImpl interface? Because our servers may not have a synchronized time or worse -- they may not even be in the same timezone!

In addition, holding expiration date in your `Action` can be a waste of space. Memcached, ehcached and many other cache providers have a TTL (time-to-live) option. In `CacheImpl` interface, we can pass timestamps like `3mn` `1h` `4d` `4s` and by this way I think you don't even need to store a start timestamp and remanining. Memcached already has a default TTL, let's just use it, that's much better.

Do you also think that will work?