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:
- Get the cached value
- Remove 1 of the values
- 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
- No complex logic for taking out data partially on the client side
- No issues with expiry times updating every time you insert the data back
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:
Is very complicated.
Solution
Provide a keyword
Cache Store Multiple Valueswhich takes a list of values like:When using
Cache Retrieve Valuefrom this stored key, only 1 of the stored values is retrieved, or None if there are no more entries leftover.Benefit