ccache icon indicating copy to clipboard operation
ccache copied to clipboard

How to promote directly saved item?

Open devrodriguez opened this issue 2 years ago • 1 comments

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.

devrodriguez avatar Jan 21 '22 14:01 devrodriguez

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?

karlseguin avatar Jan 24 '22 04:01 karlseguin