save method
Save content in storage/cache
WARN !! You don't need most cases.
Only if you have data unordered you can use this
Many Times you should use getContent
getContent will get from and save if necessary
Implementation
@mustCallSuper
Future<void> save(T content) async {
if (_cacheDates.containsKey(content.identifier)) {
_cacheDates.remove(content.identifier);
}
_contents[content.identifier] = content;
_cacheDates[content.identifier] = content.cacheTime.millisecondsSinceEpoch;
return _checkNeedsRemove();
}