Skip to content

缓存设置为redis,是否需要修改一行代码 #301

Description

@flowersfallen

缓存设置为redis后,除了在配置文件的cache同级下加一段database配置,如下,

'database' => [ 'redis' => [ 'default' => [ 'host' => 'localhost', 'port' => 6379, 'database' => 1, ], ], ],

是否需要在实例化RedisManager那里多传一个参,不然会报缺少参数的错误提示,
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions