ItemJsonConfig.php 564 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Module\Game\DCache;
  3. use App\Module\GameItems\Commands\GenerateItemsJsonCommand;
  4. use App\Module\LCache\DQueueJob;
  5. class ItemJsonConfig extends DQueueJob
  6. {
  7. static public function getNewData(array $parameter = [])
  8. {
  9. return GenerateItemsJsonCommand::generateJson();
  10. }
  11. static public function getTtl(): int
  12. {
  13. return 3600;
  14. }
  15. static public function getPreventDuplication(): int
  16. {
  17. return 600;
  18. }
  19. static public function getRequiredArgIndex(): array
  20. {
  21. return [];
  22. }
  23. }