Future<void> persistEntity(String key, TEntity entity) async { return persist(key, entity.toJson()); }