Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
47 lines (31 loc) · 1011 Bytes

File metadata and controls

47 lines (31 loc) · 1011 Bytes
code type title description
true
page
lindex
MemoryStorage:lindex

lindex

Returns the element at the provided index in a list.

[Redis documentation]


lindex(key, index, [options], callback)

Arguments Type Description
key string Key identifier
index int Element position in the list
options JSON Object Optional parameters
callback function Callback

Options

Option Type Description Default
queuable boolean Make this request queuable or not true

Callback Response

Returns a string containing the retrieved element's value.

Usage

<<< ./snippets/lindex-1.php

Callback response:

"foo"