Redis is like memcached on steroids. It is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. In Symfony it can be used as a cache adapter. It is also used to store sessions consistently and allows to scale as unlike the Memcached adapter, it is not limited to the current server's shared memory.
Published on 2018-11-16 • Modified on 2019-01-06
In this post we will see how to implement a fail2ban like system for Symfony. It will log login failure attempts for a given IP and will prevent further tries once a critical threshold is reached. When happening, a customized error page will be displayed to the user. ⏹