Skip to content

Move invalidation of caches to ActionQueue #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

hazzik
Copy link

@hazzik hazzik commented Dec 5, 2017

No description provided.

Copy link
Owner

@gliljas gliljas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, code is better than words :) Just a couple of potential obsoletions, but maybe that destroys it for asyncgenerator ?

@@ -33,29 +33,40 @@ public UpdateTimestampsCache(Settings settings, IDictionary<string, string> prop
updateTimestamps = settings.CacheProvider.BuildCache(regionName, props);
}

public void PreInvalidate(object[] spaces)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make obsolete?

//TODO: return new Lock(ts);
}

/// <summary></summary>
public void Invalidate(object[] spaces)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make obsolete?

@hazzik
Copy link
Author

hazzik commented Dec 5, 2017

I was thinking to make them obsolete, but decided not to, I don’t know why.

@hazzik
Copy link
Author

hazzik commented Dec 5, 2017

Maybe because of AsyncGenerator

@gliljas
Copy link
Owner

gliljas commented Dec 5, 2017

Let's leave them as is for now.

@gliljas gliljas merged commit 5878986 into gliljas:unnecessarycachecalls Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants