From f96f952d95930e1295051c1bfe348dd324ebf878 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Wed, 16 Jul 2025 13:38:53 +0800
Subject: [PATCH] 添加缓存

---
 src/config/index.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/config/index.js b/src/config/index.js
index 5deddf3..3143a30 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -7,7 +7,12 @@
 export const REQUEST_TIMEOUT = 30000
 
 // 请求频率
+// 全局基础超时时间
 export const TIME_OUT = 2000
+// 行情轮询间隔(毫秒) - 优化性能调整为5秒
+export const QUOTE_POLLING_INTERVAL = 5000
+// 缓存过期时间(毫秒)
+export const CACHE_EXPIRE = 5 * 60 * 1000 // 5分钟
 
 // 表单类型key
 export const CONTENT_TYPE = 'Content-Type'

--
Gitblit v1.9.3