Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add keyword "Cache Store Multiple Values" for storing and handling multiple values #15

Description

@timdegroot1996

Description

In my usecase I want to query for a lot of rows of data.
Storing these rows individually will make the code very complex and having to manually:

  1. Get the cached value
  2. Remove 1 of the values
  3. Store back the remaining values in the cache (but take new expiry into account)

Is very complicated.

Solution

Provide a keyword Cache Store Multiple Values which takes a list of values like:

Cache Store Multiple Values    ${key}    @{values}    expire_in_seconds=10

When using Cache Retrieve Value from this stored key, only 1 of the stored values is retrieved, or None if there are no more entries leftover.

Benefit

  1. No complex logic for taking out data partially on the client side
  2. No issues with expiry times updating every time you insert the data back

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions