22 lines
340 B
Go
22 lines
340 B
Go
package redis
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/redis/go-redis/v9"
|
|
|
|
config "openreplay/backend/internal/config/redis"
|
|
)
|
|
|
|
type Client struct {
|
|
Cfg *config.Redis
|
|
Redis *redis.Client
|
|
}
|
|
|
|
func New(cfg *config.Redis) (*Client, error) {
|
|
return nil, errors.New("not implemented")
|
|
}
|
|
|
|
func (c *Client) Close() error {
|
|
return c.Redis.Close()
|
|
}
|