Core
API v2.x
2

hstrlen #

Returns the string length of a field's value in a hash.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_hstrlen/<_id>/<field>
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "hstrlen",
  "_id": "<key>",
  "field": "<field>"
}

Arguments #

  • _id: hash key identifier
  • field: hash field name

Response #

Returns the length of the requested hash field.

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "hstrlen",
  "collection": null,
  "index": null,
  "result": 42
}