FreeBSD/contrib/subversion/subversion/libsvn_subr/cache-membuffer.c
/* Look for the cache entry in group GROUP_INDEX of CACHE, identified
 * by the hash value TO_FIND.  If no item has been stored for KEY, *FOUND
 * will be FALSE and TRUE otherwise.
 */
Look for the cache entry in group GROUP_INDEX of CACHE, identified
by the hash value TO_FIND.  If no item has been stored for KEY, *FOUND
will be FALSE and TRUE otherwise.
Look for the cache entry in group GROUP_INDEX of CACHE identified by the hash value TO_FIND . If no item has been stored for KEY * FOUND will be FALSE and TRUE otherwise .
static svn_error_t *
membuffer_cache_has_key_internal(svn_membuffer_t *cache,
                                 apr_uint32_t group_index,
                                 const full_key_t *to_find,
                                 svn_boolean_t *found)
{
  entry_t *entry = find_entry(cache, group_index, to_find, FALSE);
  if (entry)
    {
      increment_hit_counters(cache, entry);
      *found = TRUE;
    }
  else
    {
      *found = FALSE;
    }
  return SVN_NO_ERROR;
}
static svn_error_t * membuffer_cache_has_key_internal ( svn_membuffer_t * cache , apr_uint32_t group_index , const full_key_t * to_find , svn_boolean_t * found ) { entry_t * entry = find_entry ( cache , group_index , to_find , FALSE ) ; if ( entry ) { increment_hit_counters ( cache , entry ) ; * found = TRUE ; } else { * found = FALSE ; } return SVN_NO_ERROR ; }
Look for the cache entry in group GROUP_INDEX of CACHE, identified
 by the hash value TO_FIND.
Look for the cache entry in group GROUP_INDEX of CACHE identified by the hash value TO_FIND .
/* This often be called by "block read" when most data is already
         in L2 and only a few previously evicted items are added to L1
         again.  While items in L1 are well protected for a while, L2
         items may get evicted soon.  Thus, mark all them as "hit" to give
         them a higher chance of survival. */