For example i have list in redis with some data, this list can be really large so if i use
getList
method i can run out of memory.
//getList
$Data = Rediska()->getList('example_list_of_data');
foreach ($Data as $value) {
if (in_array($someValue, $value)) {
//delete element from list
Rediska()->popFromList('example_list_of_data', $value);
}
}
I dont want to get full list from Redis, i want to get data part by part(for exmaple of 50 pieces). Like so:
get 50 first items
->try to find element
->if so delete it and stop iteration
->if did not find iterate next 50 etc...
how can i achive this? i can get list size with LLEN