A
A
Arthur2018-07-04 09:37:04
Redis
Arthur, 2018-07-04 09:37:04

Redis encoding problem?

Good afternoon, I decided to learn redis paired with laravel.
Installed laravel via composer
laravel new laravelredis.dev
after installed redis as it is written in off documentation
composer require predis/predis
in .env changed cache driver
CACHE_DRIVER=redis
added access to redis facade to web.php
use Illuminate\Support\Facades\Redis;
wrote data to redis and called

Redis::set('name','Artur');
    return Redis::get('name');

got an error
b"Ïîäêëþ÷åíèå íå óñòàíîâëåíî, ò.ê. êîíå÷íûé êîìïüþòåð îòâåðã çàïðîñ íà ïîäêëþ÷åíèå. [tcp://127.0.0.1:6379]"

debugger data
error
log
[06:20:52] LOG.error: [INVALID UTF-8 DATA]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2018-07-04
@ART_CORP

It remains only to launch Redis itself.
predis/predis is a lib for working with Redis, not Redis itself.
"Connection failed because the destination computer denied the connection request"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question