22 lines
303 B
Go
Raw Normal View History

2025-02-24 16:48:20 +08:00
package cachingsvc
import (
"context"
cachingdomain "legalgo-BE-go/internal/domain/caching"
2025-02-24 16:48:20 +08:00
"github.com/redis/go-redis/v9"
)
type impl struct {
redisClient *redis.Client
}
type implIntf interface {
Set(context.Context, cachingdomain.CacheSpec) error
}
func New() implIntf {
return &impl{}
}