class Redis

def xlen(key)

Returns:
  • (Integer) - the number of entries

Parameters:
  • key (String) -- the stream key

Other tags:
    Example: With key -
def xlen(key)
  synchronize { |client| client.call([:xlen, key]) }
end