Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

RedisException Redis server went away #4

Open
baizhiqiang opened this issue Jul 27, 2017 · 3 comments
Open

RedisException Redis server went away #4

baizhiqiang opened this issue Jul 27, 2017 · 3 comments

Comments

@baizhiqiang
Copy link

what is the problem ?? Does not the Connection should extends Componets??

@dcb9
Copy link
Owner

dcb9 commented Jul 27, 2017

I think this problem without reference to the component.
I have found the same issue as you:

phpredis/phpredis#374
http://www.dear521.com/home/blog/index/id/38.html

@luciuz
Copy link

luciuz commented Mar 6, 2018

@dcb9
You should run $this->redis->open(); not in a Cache class but in a Connection init method.

@dcb9
Copy link
Owner

dcb9 commented Mar 7, 2018

Thanks for your comment. @luciuz

I think that is not good programming pattern. Connection wraps the Redis library, and it should only provides functions.

The Cache class and Session class are the caller, that call open() function had better be in the caller in my opinion.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants