(key string)
| 329 | } |
| 330 | |
| 331 | func (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 | |
| 344 | func (c Client) LPOP(key string) (element ReturnValue, err error) { |
| 345 | element, _, err = c.listPop(key, Left) |