Files
cloud/internal/impl/impl.go

23 lines
464 B
Go
Raw Normal View History

2025-12-26 22:35:18 +08:00
package impl
import (
"time"
"git.apinb.com/bsm-sdk/core/cache/redis"
cache "github.com/patrickmn/go-cache"
"gorm.io/gorm"
)
var (
RedisService *redis.RedisClient
DBService *gorm.DB
MemoryService *cache.Cache
)
func NewImpl() {
// with activating
MemoryService = cache.New(5*time.Minute, 10*time.Minute)
2026-01-04 18:06:23 +08:00
//RedisService = with.RedisCache(config.Spec.Cache) // redis cache
//DBService = with.Databases(config.Spec.Databases, nil) // model
2025-12-26 22:35:18 +08:00
}