clear method
Frees up storage space in both the level2 cache and in-memory cache.
Throws JsonCacheException to indicate operation failure.
Implementation
@override
Future<void> clear() async {
await _mutex.protectWrite(() async {
await _level2.clear();
_memory.clear();
});
}