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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to promote directly saved item? #68

Closed
devrodriguez opened this issue Jan 21, 2022 · 1 comment
Closed

How to promote directly saved item? #68

devrodriguez opened this issue Jan 21, 2022 · 1 comment

Comments

@devrodriguez
Copy link

I dude,
I need hight availability and Im thinking about to promote items just when it's saved, it's that posible?. I don't want to wait for get first item calls to promote it.

@karlseguin
Copy link
Owner

When an item is added (through set/replace/fetch), it's automatically promoted.

If you're asking for a special method, like c.Promote(key) I think you can just do:

_ = c.Get(key)

I don't think there's really be any way to have a dedicate Promote function be more optimized.

Or do I misunderstand your request?

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

No branches or pull requests

2 participants