RedisKeys.php 955 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Utils;
  3. class RedisKeys
  4. {
  5. //单机登录限制hash key
  6. const SINGLE_LOGIN_API = "single_login_api"; // 运维端
  7. const LOCK_RECEIVE_WORK = "lock:receive:work:%s"; //接工单锁
  8. const LOCK_EXPIRE_RECEIVE_WORK = 60*60; //接工单锁有效锁时长
  9. // 每日更新单个车辆总收益锁
  10. const LOCK_EVERYDAY_UPDATE_BIKES_PROFIT_DAY = "lock:everyday:update:bikes:profit:%s";
  11. const LOCK_EVERYDAY_UPDATE_BIKES_PROFIT_DAY_EXPRIRE = 90 *60 *24;
  12. // 待支付订单 缓存key
  13. const ORDER_NO_PAY_NO = "order:no:pay:%s";
  14. const ORDER_NO_PAY_NO_THREE = 60*60*24*2 - 100;
  15. const ORDER_NO_PAY_NO_SEVEN = 60*60*24*4 - 100;
  16. const ORDER_NO_PAY_NO_THIRTY = 60*60*24*23 - 100;
  17. // 每日押金统计 收益统计
  18. const DEPOSIT_STATISTICS_KEY = "deposit_statistics";
  19. const STATISTICS_KEY_TIME = 60*60*24 -600; // 缓存时间
  20. const PROFIT_STATISTICS_KEY = "profit_statistics";
  21. }