优化结构
This commit is contained in:
Vendored
+2
-2
@@ -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)}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user