public virtual int Get(FacetLabel categoryPath) { lock (this) { int result; if (!cache.TryGetValue(categoryPath, out result)) { return(-1); } return(result); } }