Exemple #1
0
        public void RemovePlaylistFromCache(Guid userId, Guid id, bool getTracks)
        {
            var repositoryCache = new PlaylistRepositoryIdCache(_metadataRepository, userId, id, getTracks);

            repositoryCache.SetAddNullToCache(false);
            repositoryCache.Remove();
        }
Exemple #2
0
        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));
        }