| | | 1 | | namespace LGDXRobotCloud.Utilities.Helpers; |
| | | 2 | | |
| | | 3 | | public static class RedisHelper |
| | | 4 | | { |
| | | 5 | | public static string GetRobotDataIndex(int realmId) |
| | 0 | 6 | | { |
| | 0 | 7 | | return $"idxRobotData:{realmId}"; |
| | 0 | 8 | | } |
| | | 9 | | |
| | | 10 | | public static string GetRobotData(int realmId, Guid robotId) |
| | 0 | 11 | | { |
| | 0 | 12 | | return $"robotData:{realmId}:{robotId}"; |
| | 0 | 13 | | } |
| | | 14 | | |
| | | 15 | | public static string GetRobotDataPrefix(int realmId) |
| | 0 | 16 | | { |
| | 0 | 17 | | return $"robotData:{realmId}:"; |
| | 0 | 18 | | } |
| | | 19 | | |
| | | 20 | | public static string GetSchedulerHold(int realmId, Guid robotId) |
| | 0 | 21 | | { |
| | 0 | 22 | | return $"schedulerHold:{realmId}:{robotId}"; |
| | 0 | 23 | | } |
| | | 24 | | |
| | | 25 | | public static string GetAutoTaskUpdateQueue(int realmId) |
| | 0 | 26 | | { |
| | 0 | 27 | | return $"autoTaskUpdate:{realmId}"; |
| | 0 | 28 | | } |
| | | 29 | | |
| | | 30 | | public static string GetRobotExchangeQueue(Guid robotId) |
| | 0 | 31 | | { |
| | 0 | 32 | | return $"robotExchangeQueue:{robotId}"; |
| | 0 | 33 | | } |
| | | 34 | | |
| | | 35 | | public static string GetSlamData(int realmId) |
| | 0 | 36 | | { |
| | 0 | 37 | | return $"robotSlamData:{realmId}"; |
| | 0 | 38 | | } |
| | | 39 | | |
| | | 40 | | public static string GetSlamExchangeQueue(int realmId) |
| | 0 | 41 | | { |
| | 0 | 42 | | return $"robotSlamExchangeQueue:{realmId}"; |
| | 0 | 43 | | } |
| | | 44 | | } |