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
OnceGroup.Do would have the same semantics as Group.Do, but caches and returns the first computed result.
Example: looking up the user id in /etc/passwd for a given username; something you might need to do once and not more than that, since (if) you don't expect the value to change during the life of the process.
The text was updated successfully, but these errors were encountered:
kevinburke
changed the title
singleflight: add DoOnce function
singleflight: add OnceGroup struct
May 13, 2018
kevinburke
added a commit
to kevinburke/groupcache
that referenced
this issue
May 13, 2018
OnceGroup.Do would have the same semantics as Group.Do, but caches and returns the first computed result.
Example: looking up the user id in /etc/passwd for a given username; something you might need to do once and not more than that, since (if) you don't expect the value to change during the life of the process.
The text was updated successfully, but these errors were encountered: