Core
API v2.x
2

hstrlen #

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

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_hstrlen/<_id>/<field>
Method: GET

Other protocols #

{
  "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.

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