2024-03-23 21:16:41 +03:00
|
|
|
package storage
|
|
|
|
|
|
|
|
import (
|
2024-03-26 02:21:35 +03:00
|
|
|
"github.com/redis/go-redis/v9"
|
2024-03-23 21:16:41 +03:00
|
|
|
"github.com/uptrace/bun"
|
|
|
|
)
|
|
|
|
|
|
|
|
type storage struct {
|
2024-03-26 02:21:35 +03:00
|
|
|
db *bun.DB
|
|
|
|
rdb *redis.Client
|
2024-03-23 21:16:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var instance *storage = nil
|