Recently, we came upon another use case for the package: to execute something once and only once.
The Blink cache is stored on a singleton object, so it’s destroyed at the end of the request (similar to Laravel’s array cache driver).
Say we want to generate and store PDF invoices for an order.
If someone modifies an order and an order line in the same request, GenerateInvoicePdf will be dispatched twice, clogging the queue with unnecessary work.
Here’s where Blink comes in. Instead of using Blink to store something, we’ll use it to execute something only once.