Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Class 'Redis' not found

Started by Muut Archive 10 years ago · 1 replies · 1592 views
10 years ago

Hey guys,

Not sure if this is Grav related or something I missed when installing Redis. The error points me here:

grav/system/src/Grav/Common/Cache.php

case 'redis':
$redis = new \Redis();
$redis->connect($this->config->get('system.cache.redis.server', 'localhost'),
$this->config->get('system.cache.redis.port', 6379));

PHP
            $driver = new DoctrineCache\RedisCache();
            $driver->setRedis($redis);
            break;

user/config/system.yaml

cache:
cache:
enabled: true
check:
method: file
driver: redis
redis:
server: 127.0.0.1
port: 6379
prefix: g
lifetime: 604800
gzip: false

I'm using OSX 10.10.5 and PHP 5.5.32 (cli) (built: Feb 5 2016 13:58:47)

Any help is appreciated!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1354 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4065 9 years ago
Archive · by Muut Archive, 9 years ago
1 2953 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago