Skip to content

安装的 redis8.0,我看到 ioredis 的版本也是 5.6.1,使用@eggjs/redis@3.1.0,无法在 app 上读取到 redis #50

@lincolon

Description

@lincolon

plugins 配置项
exports.redis = {
enable: true,
package: '@eggjs/redis',
};

config 配置项
config.redis = {
client: {
port: 6379, // Redis port
host: '127.0.0.1', Redis host
password: '',
db: 0,
},
};

在 controller 中执行 console.log(this.app.redis),得到的结果是 undefined;何解呢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions