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

            repositoryCache.SetAddNullToCache(false);
            repositoryCache.Remove();
        }
예제 #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));
        }