| @@ 78-81 (lines=4) @@ | ||
| 75 | */ |
|
| 76 | public function appendRedisKey($post, $redisKey) |
|
| 77 | { |
|
| 78 | if (! empty($post['selects'])) { |
|
| 79 | $whereMD5 = md5(json_encode($post['selects'])); |
|
| 80 | $redisKey .= "/select:{$whereMD5}"; |
|
| 81 | } |
|
| 82 | ||
| 83 | if (! empty($post['wheres'])) { |
|
| 84 | $whereMD5 = md5(json_encode($post['wheres'])); |
|
| @@ 83-86 (lines=4) @@ | ||
| 80 | $redisKey .= "/select:{$whereMD5}"; |
|
| 81 | } |
|
| 82 | ||
| 83 | if (! empty($post['wheres'])) { |
|
| 84 | $whereMD5 = md5(json_encode($post['wheres'])); |
|
| 85 | $redisKey .= "/where:{$whereMD5}"; |
|
| 86 | } |
|
| 87 | ||
| 88 | if (! empty($post['whereIns'])) { |
|
| 89 | $whereInMD5 = md5(json_encode($post['whereIns'])); |
|