feat: wire RPMCache into GatewayService and AccountHandler

This commit is contained in:
QTom
2026-02-28 01:17:19 +08:00
parent 777be05348
commit c1c31ed9b2
5 changed files with 19 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"github.com/Wei-Shaw/sub2api/internal/service"
"github.com/redis/go-redis/v9"
)
@@ -36,7 +37,7 @@ type RPMCacheImpl struct {
rdb *redis.Client
}
func NewRPMCache(rdb *redis.Client) *RPMCacheImpl {
func NewRPMCache(rdb *redis.Client) service.RPMCache {
return &RPMCacheImpl{rdb: rdb}
}