CacheMap.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace App\Maps;
  3. class CacheMap
  4. {
  5. //缓存时间秒
  6. const CACHE_TIME = 3600;
  7. //禁停区缓存
  8. const BAN_PARKING = 'BAN_PARKING';
  9. //停车区缓存
  10. const PARkING = 'PARkING';
  11. //区域配置缓存
  12. const AREA_SETTING_AREA_ID = 'AREA_SETTING_%s';
  13. const BY_AREA_ID_GET_IS_WHOLE_AREA_HUANCHE = 'byAreaIdGetIsWholeAreaHuanche';
  14. const BY_AREA_ID_GET_BATTERY_POWER = 'byAreaIdGetBatteryPower';
  15. const IS_OPEN_STOP_BIKE_FUSHE = 'isOpenStopBikeFushe';
  16. const BY_AREA_ID_GET_FREE_MINUTE = 'byAreaIdGetFreeMinute';
  17. // 临时停车缓存key
  18. const BIKE_TEM_WAIT = 'bike:tem:wait:%s';
  19. const BIKE_TEM_WAIT_TIME = 60 * 120; //缓存时间
  20. // 免费骑行缓存key
  21. const FREE_MINUTE_USER_ID = 'free:minute:%s';
  22. const SINGLE_LOGIN_API = "single_login_api"; // 单机登录限制
  23. const BIKE_LOCATION_MONGODB = "bike_location_mongodb"; // 单机登录限制
  24. const BIKE_REFRESH_LOCATION_MONGODB = "bike_refresh_location_mongodb"; // 单机登录限制
  25. const IS_OPEN_MONGODB_DUG = false;
  26. }