<?php

return [

    /*
    |--------------------------------------------------------------------------
    | API usage tracking (Redis buffer)
    |--------------------------------------------------------------------------
    |
    | API request stats are accumulated in Redis and flushed to the api_usage
    | table on a schedule, instead of writing the same hot row on every request.
    |
    | redis_prefix : key namespace for the buffer (overridable per test).
    | bucket_ttl   : safety expiry (seconds) so an un-flushed bucket can't linger
    |                forever if a flush is missed.
    |
    */

    'redis_prefix' => env('API_USAGE_REDIS_PREFIX', 'api-usage'),

    'bucket_ttl' => (int) env('API_USAGE_BUCKET_TTL', 7200),

];
