feat: implement core repository layer and redis caching infrastructure
Build and Release / release (push) Successful in 1m37s
Build and Release / release (push) Successful in 1m37s
This commit is contained in:
Vendored
+2
-1
@@ -35,7 +35,8 @@ func NewRedisClient() (Cache, error) {
|
||||
|
||||
rdb := redis.NewClient(&redis.Options{
|
||||
Addr: uri,
|
||||
MinIdleConns: 10,
|
||||
PoolSize: 500,
|
||||
MinIdleConns: 50,
|
||||
DialTimeout: 5 * time.Second,
|
||||
ReadTimeout: 3 * time.Second,
|
||||
WriteTimeout: 3 * time.Second,
|
||||
|
||||
@@ -20,6 +20,8 @@ func NewPostgresqlDB() (*pgxpool.Pool, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poolConfig.MaxConns = 100
|
||||
poolConfig.MinConns = 10
|
||||
|
||||
var pool *pgxpool.Pool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user