Socket
Socket
Sign inDemoInstall

egg-redis

Package Overview
Dependencies
3
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.5.0

9

History.md
2.5.0 / 2023-06-06
==================
**features**
* [[`3088929`](http://github.com/eggjs/egg-redis/commit/3088929586dbf4127a9846767ef247e6c663d883)] - feat: support redis path mode (#33) (QingDeng <<zrl412@163.com>>)
**others**
* [[`83d5404`](http://github.com/eggjs/egg-redis/commit/83d54044eff260fc3d704a394c410469f4e8b89e)] - docs: fix default redis version (dead-horse <<dead_horse@qq.com>>)
2.4.0 / 2019-06-13

@@ -3,0 +12,0 @@ ==================

14

lib/redis.js

@@ -38,6 +38,12 @@ 'use strict';

} else {
assert(config.host && config.port && config.password !== undefined && config.db !== undefined,
`[egg-redis] 'host: ${config.host}', 'port: ${config.port}', 'password: ${config.password}', 'db: ${config.db}' are required on config`);
app.coreLogger.info('[egg-redis] server connecting redis://:***@%s:%s/%s',
config.host, config.port, config.db);
assert((config.host && config.port && config.password !== undefined && config.db !== undefined) || config.path,
`[egg-redis] 'host: ${config.host}', 'port: ${config.port}', 'password: ${config.password}', 'db: ${config.db}' or 'path:${config.path}' are required on config`);
if (config.host) {
app.coreLogger.info('[egg-redis] server connecting redis://:***@%s:%s/%s',
config.host, config.port, config.db);
} else {
app.coreLogger.info('[egg-redis] server connecting %s',
config.path || config);
}
client = new Redis(config);

@@ -44,0 +50,0 @@ }

{
"name": "egg-redis",
"version": "2.4.0",
"version": "2.5.0",
"description": "Redis plugin for egg",

@@ -5,0 +5,0 @@ "eggPlugin": {

@@ -121,3 +121,3 @@ # egg-redis

`egg-redis` using ioredis@3 now, if you want to upgrade your ioredis, you can pass the instance by `config.redis.Redis`:
`egg-redis` using ioredis@4 now, if you want to use other version of ioredis, you can pass the instance by `config.redis.Redis`:

@@ -124,0 +124,0 @@ ```js

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc