Answer the question
In order to leave comments, you need to log in
How to force Yii2 not to use md5 for hashing Redis keys in the \yii\redis\Cache class?
It is very necessary to make sure that Yii2 using the \yii\redis\Cache class does not hash key names.
// prefix:keyname1 -> 0e46d28d5fb7676bffd12253c26aec56
Yii::$app->cache->set( 'prefix:keyname1', 'key-value-1, 60 * 60 * 24 );
// keyname2 -> keyname2
Yii::$app->cache->set( 'keyname2', 'key-value-2, 60 * 60 * 24 );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question