code: func (c *CacheLazyFill) normaliseAndSaveEntityToDatabase(entityType, uuid string, nv *entity) error {
  	// Strip name suffixes if applicable. This is intended for blue green deployments,
  	// so that things like -venerable can be stripped from renamed apps
  	if entityType == "apps" {
  		for _, suffix := range c.config.StripAppSuffixes {
  			if strings.HasSuffix(nv.Name, suffix) {
  				nv.Name = nv.Name[:len(nv.Name)-len(suffix)]
  				break
  			}
  		}
  	}
  
  	// Set TTL to value between 75% and 125% of desired amount. This is to spread out cache invalidations
  	nv.TTL = time.Now().Add(time.Duration(float64(c.config.CacheInvalidateTTL.Nanoseconds()) * (0.75 + (rand.Float64() / 2.0))))
  
  	// Write to DB
  	return c.store.Set(makeCacheStorageKey(entityType, uuid), nv)
  }
docs: // normaliseAndSaveEntityToDatabase saves the entity to the cache, stripping app name prefixes if enabled
  // entityType is "apps" or "spaces" or "orgs" - caller must validate
  // uuid  must be validated by caller
  // nv may be modified by this function