MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / LINDEX

Method LINDEX

lists.go:223–230  ·  view source on GitHub ↗
(key string, index int64)

Source from the content-addressed store, hash-verified

221}
222
223func (c Client) LINDEX(key string, index int64) (element ReturnValue, err error) {
224 node, _, err := c.listNodeAtIndex(key, index)
225 if err != nil {
226 return
227 }
228
229 return node.value, err
230}
231
232func (c Client) listNodeAtIndex(key string, index int64) (node listNode, found bool, err error) {
233 side := Left

Callers 1

TestListIndexBasedCRUDFunction · 0.80

Calls 1

listNodeAtIndexMethod · 0.95

Tested by 1

TestListIndexBasedCRUDFunction · 0.64