Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
animir committed Jul 5, 2018
2 parents e29914d + 6029d57 commit ea42f34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions POSTGRES.md
Expand Up @@ -116,7 +116,7 @@ Endpoint is limited by `RateLimiterMySQL` with config:

```javascript
new RateLimiterPostgres({
storeClient: mysql,
storeClient: pgClient,
points: 5, // Number of points
duration: 1, // Per second(s)
});
Expand All @@ -134,4 +134,4 @@ Statistics Avg Stdev Max
99% 29.42ms
HTTP codes:
1xx - 0, 2xx - 8985, 3xx - 0, 4xx - 21024, 5xx - 0
```
```
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -33,8 +33,8 @@ Advantages:

* [RateLimiterRedis](#ratelimiterredis)
* [RateLimiterMongo](#ratelimitermongo)
* [RateLimiterMySQL](https://github.com/animir/node-rate-limiter-flexible/blob/master/MYSQL.md)
* [RateLimiterPostgreSQL](https://github.com/animir/node-rate-limiter-flexible/blob/master/POSTGRES.md)
* [RateLimiterMySQL](https://github.com/animir/node-rate-limiter-flexible/blob/master/MYSQL.md) (support Sequelize and Knex)
* [RateLimiterPostgreSQL](https://github.com/animir/node-rate-limiter-flexible/blob/master/POSTGRES.md) (support Sequelize and Knex)
* [RateLimiterCluster](#ratelimitercluster)
* [RateLimiterMemory](#ratelimitermemory)
* [RateLimiterUnion](#ratelimiterunion) Combine 2 or more limiters to act as single
Expand Down Expand Up @@ -488,4 +488,4 @@ It has to implement at least 3 methods:
* `_upsert` inserts or updates limits data by key and returns raw data
* `_get` returns raw data by key

All other methods depends on store. See `RateLimiterPostgres` for example.
All other methods depends on store. See `RateLimiterPostgres` for example.

0 comments on commit ea42f34

Please sign in to comment.