LSKEYS

About

Time complexity: O(n)
Accept type:

Return type:

Syntax:

  • LSKEYS <limit>
  • LSKEYS <entity>
  • LSKEYS <entity> <limit>

Returns a flat string array of keys present in the current table or in the provided entity. If no <limit> is given, then a maximum of 10 keys are returned. If a limit is specified, then a maximum of <limit> keys are returned. The order of keys is meaningless.