predis/predis

JSONSET don't include PREFIX on key.

Closed this issue · 0 comments

Describe the bug
When using jsonset method, the prefix defined in configuration array is not used.

To Reproduce
Steps to reproduce the behavior:

  1. Initialize the Predis\Client with some prefix: $client = new Predis\Client($_ENV['REDIS_HOST'], [ 'prefix' => "_test-prefix_" ]);
  2. Set something using jsonset method: $client->jsonset('something', 123)
  3. Check your Redis instance, the 'something' will not be prefixed.

Expected behavior
I expect that my register be prefixed with the prefix I defined on the options array: "_test-prefix_something"

Versions (please complete the following information):

  • Predis: 2.2.0
  • PHP 8.2.8
  • Redis Server 7.0
  • OS Ubuntu 20.04