Can you answer why when there is this extension - phpredis/phpredis ,
yiisoft/yii2-redis extension does not use it ?
I do not know what to use nowadays, with as less bugs as possible
Can you answer why when there is this extension - phpredis/phpredis ,
yiisoft/yii2-redis extension does not use it ?
I do not know what to use nowadays, with as less bugs as possible
Obviously yiisoft/yii2-redis
.
It is official extension
it is not obvious.
Documentation is worse.
Say phpredis command get is described:
Return value
String or Bool: If key didn’t exist,
FALSE
is returned. Otherwise, the value related to this key is returned
With yii extension you are supposed to peek into code and it has no hint what will be returned if key does not exists.
Redis docs says that some ‘nil’ value is returned, but we get null
Can you ask a question, Please?
I already did
Hey @Pathfinder - the phpredis/phpredis
extension is a PHP extension. The yiisoft/yii2-redis
library is appropriate if you just need a wrapper to execute commands to an underlying redis server.
No one can decide which tool to use and I can definitely see benefits to using both phpredis
or yii2-redis
depending on the technical requirements.
The documentation in yii2-redis
could be improved (all documentation can be). But the documentation also points to the Redis Docs - Get Command for you.
If you have any specific bug on the yii2-redis
or any other library let me know and I can try to replicate and would be happy to submit a PR to address it.