php - laravel 中 redis 的问题

标签 php laravel redis

为了存储缓存,我使用 Redis。使用此命令后:

php artisan cache:clear --tags=tag

我看到以下错误:

Failed to clear cache. Make sure you have the appropriate permissions

我该如何解决?

最佳答案

我认为它与 github 中的这个问题相关

要修复它,您可以更改 Illuminate\Cache\Console\ClearCommand.php

来自

if (! $successful) {
    return $this->error('Failed to clear cache. Make sure you have the appropriate permissions.');
}

if ($successful === false) {
    return $this->error('Failed to clear cache. Make sure you have the appropriate permissions.');
}

关于php - laravel 中 redis 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52432109/

相关文章:

ruby-on-rails - 我应该使用什么 Rails gem 来使用 Resque 进行重复性工作?

php - 无法使用 stylesheet_directory 检索图像

php - 每个帖子请求的 CSRF token 不匹配 Laravel 9

php - Laravel- 5.5 App\Comment::user 必须返回一个关系实例。

php - 我需要解决上传文件问题的帮助和想法,并在后台 Laravel 或 NodeJs 中执行一些任务

spring-boot - Ehcache 在集群的应用程序中不起作用

php - 图像 blob 上的 GROUP_CONCAT?

php - 如何将数据库中的值与字符串的一部分进行比较

php - 从 div 转换为表格或在 PHP 中解析 PDF

php - 使用数组循环数据库并将数据保存到变量 Laravel