public void RemovePlaylistFromCache(Guid userId, Guid id, bool getTracks) { var repositoryCache = new PlaylistRepositoryIdCache(_metadataRepository, userId, id, getTracks); repositoryCache.SetAddNullToCache(false); repositoryCache.Remove(); }
public Task <Playlist> GetPlaylistAsync(Guid userId, Guid id, bool getTracks, CancellationToken cancellationToken) { var repositoryCache = new PlaylistRepositoryIdCache(_metadataRepository, userId, id, getTracks); repositoryCache.SetAddNullToCache(false); return(repositoryCache.GetResultAsync(cancellationToken, UseCache)); }