Open at15 opened 8 years ago
can't use predis scan like redis-cache
$pattern = $prefix . '*';
$cursor = 0;
$counter = 0;
do {
$result = $this->client->scan($cursor, $pattern);
$cursor = $result[0];
if (!empty($result[1])) {
$this->client->del($result[1]);
}
$counter++;
} while ($cursor != 0);
return $counter;
the second argument need to be an array .... btw: really lack of documentation ...
should use array('MATCH' => 'foo*')
the cache library is finished in 3de15073e9ff404e00ef43defe85384ded37d804, with some modification it would be a session library .... en.
We need a session library that
X-Bform-Token
when this project completes, this package will be split out and published using composer.
Ref