ChestJsonConfig.php 659 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace App\Module\Game\DCache;
  3. use App\Module\GameItems\Commands\GenerateChestJsonCommand;
  4. use App\Module\GameItems\Commands\GenerateItemsJsonCommand;
  5. use App\Module\LCache\DQueueJob;
  6. /**
  7. * 宝箱配置表 缓存
  8. */
  9. class ChestJsonConfig extends DQueueJob
  10. {
  11. static public function getNewData(array $parameter = [])
  12. {
  13. return GenerateChestJsonCommand::generateJson();
  14. }
  15. static public function getTtl(): int
  16. {
  17. return 3600;
  18. }
  19. static public function getPreventDuplication(): int
  20. {
  21. return 600;
  22. }
  23. static public function getRequiredArgIndex(): array
  24. {
  25. return [];
  26. }
  27. }