Skip to content

PK algorithm change

Compare
Choose a tag to compare
@bazilio91 bazilio91 released this 02 Sep 06:52
· 59 commits to master since this release

This release breaks compatibility with older releases.

To migrate to new version you should migrate your pks. Example code:

function fill($keys)
{
    foreach ($keys as $key) {
        yield $key;
        yield 0;
    }
}

$keys = $redis->executeCommand('LRANGE', ['model', 0, -1]);
$keys = iterator_to_array(fill($keys));
$keys = array_unshift($keys, 'model')

$redis->executeCommand('DEL', 'model')
$redis->executeCommand('HMSET', $keys)