code: protected void store(Object id, Object entity, boolean spillOverToL2)
      {
          String key = cacheKey(entity.getClass(), id);
          LOG.debug("Writing to L1 >> " + key);
          sessionCache.put(key, entity);
  
          if (spillOverToL2)
          {
              LOG.debug("Writing to L2 >>" + key);
              // save to second level cache
              Cache c = (Cache) getL2Cache();
              if (c != null)
              {
                  c.put(key, entity);
              }
          }
      }
docs: Save to cache.
  
  @param id
  the id
  @param entity
  the entity
  @param spillOverToL2
  the spill over to l2