michalmuskala / plug_attack

A plug building toolkit for blocking and throttling abusive requests
420 stars 21 forks source link

Redis adapter for the Storage behaviour #20

Open polvalente opened 3 years ago

polvalente commented 3 years ago

I've written an adapter which implements the increment callback for the throttle function to use, with Redis as a backend. Is a PR on this welcome?

For now, the code has mock implementations for the other callbacks, but I think it's possible to implement them properly it that's also desirable