优化结构

This commit is contained in:
Yvan
2026-08-22 12:13:16 +08:00
parent d987244d0e
commit b27a66e9d3
200 changed files with 1794 additions and 1715 deletions
+2 -2
View File
@@ -2,12 +2,12 @@ package cache
import (
"context"
"kra/internal/biz/system"
"strconv"
"sync"
"time"
"github.com/redis/go-redis/v9"
"kra/internal/biz"
)
type RedisProvider interface {
@@ -27,7 +27,7 @@ type Store struct {
const maxMemoryEntries = 10000
func New(provider RedisProvider) biz.Cache {
func New(provider RedisProvider) system.Cache {
return &Store{provider: provider, memory: make(map[string]memoryEntry)}
}