IPC rango y sort
This commit is contained in:
@ -27,6 +27,7 @@ class IPC
|
||||
} catch (EmptyRedis) {
|
||||
$ipc = $this->moneyService->getIPC($from, $to);
|
||||
$ipcs[$dateKey] = $ipc;
|
||||
ksort($ipcs);
|
||||
$this->redisService->set($this->redisKey, json_encode($ipcs), 60 * 60 * 24 * 30);
|
||||
}
|
||||
return $ipcs[$dateKey];
|
||||
|
@ -22,6 +22,7 @@ class UF
|
||||
} catch (EmptyRedis) {
|
||||
$uf = $this->moneyService->getUF($date);
|
||||
$ufs[$date->format('Y-m-d')] = $uf;
|
||||
ksort($ufs);
|
||||
$this->redisService->set($this->redisKey, json_encode($ufs), 60 * 60 * 24 * 30);
|
||||
}
|
||||
return $uf;
|
||||
|
Reference in New Issue
Block a user