code: public boolean inCache()
      {
          boolean inCache = false;
  
          synchronized (ivBucket)
          {
              // Non-negative pin value indicates the object is in the cache.
              if (pinned >= 0)
              {
                  ((WrapperBucket) ivBucket).ivWrapperCache.touch(this);
                  inCache = true;
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "touch: inCache = " + inCache + ", " + ivBeanId);
  
          return inCache;
      }
docs: d195605