CacheKeys.QT.cs 888 B

1234567891011121314151617181920212223242526272829303132
  1. namespace JiaZhiQuan.Common
  2. {
  3. public static partial class CacheKeys
  4. {
  5. public const int QTRecentTradeDaysCacheSecs = 24 * 60 * 60;
  6. public static string QTRecentTradeDaysBefore7(string date)
  7. {
  8. return GenerateKey("qt_recent_tradedays_before7:" + date);
  9. }
  10. public static string QTRecentTradeDaysRound3(string date)
  11. {
  12. return GenerateKey("qt_recent_tradedays_round3:" + date);
  13. }
  14. public const int QTRealtimeSingleCacheSecs = 1;
  15. public static string QTRealtimeSingle(string code)
  16. {
  17. return GenerateKey("qt_realtime_single:" + code);
  18. }
  19. public const int QTSuspensionDataListCacheSecs = 24 * 60 * 60;
  20. public static string QTSuspensionDataList(string date)
  21. {
  22. return GenerateKey("qt_suspensions:" + date);
  23. }
  24. }
  25. }