diff --git a/src/Client/RedisClient.php b/src/Client/RedisClient.php index 17fb36b..9892118 100644 --- a/src/Client/RedisClient.php +++ b/src/Client/RedisClient.php @@ -151,7 +151,7 @@ public function jsonDel(string $key, ?string $path = '$'): void /** * @inheritdoc */ - public function createIndex(string $prefixKey, ?string $format = 'HASH', ?array $properties = []): void + public function createIndex(string $prefixKey, ?string $format = RedisFormat::HASH->value, ?array $properties = []): void { if ($properties === []) { return;