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

Method listGetByAddress

lists.go:505–525  ·  view source on GitHub ↗
(key string, address string)

Source from the content-addressed store, hash-verified

503}
504
505func (c Client) listGetByAddress(key string, address string) (node listNode, found bool, err error) {
506 resp, err := c.ddbClient.GetItemRequest(&dynamodb.GetItemInput{
507 ConsistentRead: aws.Bool(true),
508 Key: listNode{
509 key: key,
510 address: address,
511 }.keyAV(c),
512 TableName: aws.String(c.table),
513 }).Send(context.TODO())
514
515 if err != nil {
516 return
517 }
518
519 if len(resp.Item) > 0 {
520 found = true
521 node = lParseNode(resp.Item, c)
522 }
523
524 return
525}
526
527func (c Client) LPUSHX(key string, elements ...Value) (newLength int64, err error) {
528 for _, element := range elements {

Callers 7

listNodeAtIndexMethod · 0.95
LINSERTMethod · 0.95
listNodeAtPivotMethod · 0.95
listPopActionsMethod · 0.95
listFindEndMethod · 0.95
LREMMethod · 0.95
listRotateMethod · 0.95

Calls 3

lParseNodeFunction · 0.85
keyAVMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected