static CACHE: Lazy<Mutex<TrustedUsersCache<PwdGrp>>>
Available on
target_family="unix"
and non-iOS and non-Android and non-tvOS only.Expand description
Cached trusted id determinations
Caching here saves time - including passwd/group lookups, which can be slow enough we don’t want to do them often.
It isn’t 100% correct since we don’t track changes to the passwd/group databases. That might not be OK everywhere, but it is OK in this application.