4

I use Laravel rate limit (throttle). I wonder where it stores throttle data and how I can change the default storage system to MySQL/Mariadb or Redis?

Sam
  • 1,424
  • 13
  • 28

1 Answers1

8

Laravel uses its cache service to store throttle data. The cache configuration is located at config/cache.php.

You can change your default cache driver to "redis" or "database" (default is "file"). Take a look at its documentation for full instructions: https://laravel.com/docs/master/cache

Hafez Divandari
  • 8,381
  • 4
  • 46
  • 63