You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no way to know if a returned value was the result of the call or a cached result? This is useful to know in certain circumstances.
Something like:
// SomeMethod ... and also returns whether the value was cached result or notfunc (g*Group) SomeMethod(keystring, fnfunc() (interface{}, error)) (interface{}, bool, error) {
In the case of cached lookup the returned bool is true.
The text was updated successfully, but these errors were encountered:
gabriel
added a commit
to keybase/client
that referenced
this issue
Jan 20, 2016
We don't want to re-apply the previous singleflighted update.
Temporarily copying singleflight here until we add in behavior to the
golang package: golang/groupcache#61
@gabriel@bradfitz Hi, Is there anyone working on this enhancement. I am really interested contributing to this project. I thought I could contribute to this requirement. Can we chat about this? Is there any chat group for this project?
There is no chat group for this project, and it's largely frozen. People use this and it works, but nobody is particularly interested in adding features (which has a cost in terms of maintenance and updating code)
If it's not very invasive, we could consider it, though.
There is no way to know if a returned value was the result of the call or a cached result? This is useful to know in certain circumstances.
Something like:
In the case of cached lookup the returned bool is true.
The text was updated successfully, but these errors were encountered: