Core
API v2.x
2

hlen #

Returns the number of fields contained in a hash.

[Redis documentation]


Query Syntax #

HTTP #

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

Other protocols #

{
  "controller": "ms",
  "action": "hlen",
  "_id": "<key>"
}

Arguments #

  • _id: hash key identifier

Response #

Returns the number of fields stored in a hash.

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