implementing key/value store of Persistance in Database storage

This commit is contained in:
El RIDO
2021-06-09 07:47:40 +02:00
parent 7901ec74a7
commit a203e6322b
8 changed files with 86 additions and 65 deletions

View File

@@ -227,10 +227,11 @@ class GoogleCloudStorage extends AbstractData
*/
public function purgeValues($namespace, $time)
{
switch ($namespace) {
case 'traffic_limiter':
;
break;
if ($namespace === 'traffic_limiter') {
// TODO implement purging of keys in namespace that are <= $time
// if GCS has no easy way to iterate all keys, consider using the
// self::$_traffic_limiter_cache in a similar way as the other
// implementations.
}
}