From 4f584726d65f98ea50aeb57f433d8bc7579e3d3d Mon Sep 17 00:00:00 2001 From: yanweidong Date: Sat, 20 Sep 2025 10:59:45 +0800 Subject: [PATCH] =?UTF-8?q?```=20refactor(with):=20=E8=B0=83=E6=95=B4Memor?= =?UTF-8?q?y=E5=87=BD=E6=95=B0=E5=8F=82=E6=95=B0=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将Memory函数的参数顺序从(opts, cli)调整为(cli, opts), 使函数签名更加符合常规的客户端优先参数排列习惯, 提升代码可读性和一致性。 ``` --- with/memory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/with/memory.go b/with/memory.go index caf8eef..89f6a98 100644 --- a/with/memory.go +++ b/with/memory.go @@ -10,7 +10,7 @@ import ( "github.com/allegro/bigcache/v3" ) -func Memory(opts *bigcache.Config, cli *bigcache.BigCache) { +func Memory(cli *bigcache.BigCache, opts *bigcache.Config) { config := bigcache.Config{ Shards: 1024, LifeWindow: 10 * time.Minute,