Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

website/blog: introducing entcache post #2034

Merged
merged 3 commits into from Oct 14, 2021
Merged

website/blog: introducing entcache post #2034

merged 3 commits into from Oct 14, 2021

Conversation

a8m
Copy link
Member

@a8m a8m commented Oct 14, 2021

Please feel free to review this post, and share your thoughts and feedback before I publish it. Thanks 馃檹

@a8m a8m requested a review from rotemtam October 14, 2021 16:55

The package provides a variety of options to configure the TTL of the cache entries, control the hash function, provide
custom and multi-level cache stores, evict and skip cache entries. See the full documentation in
[go.dev/entcache](https://go.dev/ariga.io/entcache).
Copy link
Collaborator

Choose a reason for hiding this comment

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

// Tell the entcache.Driver to skip the caching layer
// when running the schema migration.
if client.Schema.Create(entcache.Skip(ctx)); err != nil {
log.Fatal("running schema migration", err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since migrations run in transaction you might not need this.


There are a few features we are working on, and wish to work on, but need help from the community to design them
properly (solving cache invalidation, anyone? ;)). If you are interested to contribute, reach out to me on the Ent
Slack channel.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add Slack Link.
Suggest to also add Discord.

@rotemtam rotemtam merged commit 5646717 into master Oct 14, 2021
@rotemtam rotemtam deleted the entcache branch October 14, 2021 18:33
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.

None yet

3 participants