laravel-idempotency maintained by jc9group
Description
Idempotency realisation for laravel
Author
Last update
2019/09/02 10:52
(dev-master)
License
Downloads
29
Laravel idempotency repositories
Library for laravel framework to work with requests idempotency.
Keys
If you want to work with keys - you should use the IdempotencyKeyRepository
set(string $key, \DateTime $dieTime): voidmethod to set idempotency key that will be killed at$dieTimeisExists(string $key): boolmethod to check if the key exists
Executions
If you want to check if some functionality was executed by request with this key you should use ExecutionsRepository
markAsExecuted(string $executableName, string $idempotencyKey, string $executionResult = null): voidmethod to mark some functionality as executed and save execution resultpublic function getExecution(string $executableName, string $idempotencyKey): ?Executionmethod to check if the functionality has been executed and get execution result
Be careful with executions! Die time of execution mark will be like die time of a key