public void Handle(File file)
        {
            cache.Remove(new FindFilesByUserQuery(file.Owner.Id));
            cache.Remove(new FindFileByIdQuery(file.Id));
            cache.Remove(new FindUsersBySharedFileQuery(file.Id));

            foreach (string userId in file.SharedWith.Select(shared => shared.User.Id))
            {
                cache.Remove(new FindFilesByUserQuery(userId));
            }
        }
 public void Handle(File file)
 {
     cache.Remove(new FindFilesByUserQuery(file.Owner.Id));
 }
 public void Handle(FileSharesChangedMessage fileInfo)
 {
     cache.Remove(new FindFilesByUserQuery(fileInfo.UserId));
     cache.Remove(new FindUsersBySharedFileQuery(fileInfo.File.Id));
 }