getKLine($symbol, $period, $size); $kline_book_key = 'market:' . $symbol . '_kline_book_' . $period; if (isset($data['data'])) { $data['data'] = array_reverse($data['data']); $cache_data = $data['data']; Cache::store('redis')->put($kline_book_key, $cache_data); } else { $data['data'] = []; } } }