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

Method LLEN

lists.go:331–342  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

329}
330
331func (c Client) LLEN(key string) (length int64, err error) {
332 resp, err := c.ddbClient.GetItemRequest(&dynamodb.GetItemInput{
333 ConsistentRead: aws.Bool(true),
334 Key: c.listCountKey(key).toAV(c),
335 TableName: aws.String(c.table),
336 }).Send(context.TODO())
337 if err == nil {
338 length = parseItem(resp.Item, c).val.Int()
339 }
340
341 return
342}
343
344func (c Client) LPOP(key string) (element ReturnValue, err error) {
345 element, _, err = c.listPop(key, Left)

Callers 8

LINSERTMethod · 0.95
LPUSHMethod · 0.95
LPUSHXMethod · 0.95
LREMMethod · 0.95
RPUSHMethod · 0.95
RPUSHXMethod · 0.95
TestLBasicsFunction · 0.80
TestListIndexBasedCRUDFunction · 0.80

Calls 5

listCountKeyMethod · 0.95
parseItemFunction · 0.85
IntMethod · 0.80
toAVMethod · 0.45
StringMethod · 0.45

Tested by 2

TestLBasicsFunction · 0.64
TestListIndexBasedCRUDFunction · 0.64