code: protected void putToCache(String cacheName, String key, Object value, long ttlSeconds) {
          if (cacheItemsExpireAfterWrite) {
              putToCache(cacheName, key, value, ttlSeconds, 0);
          } else {
              putToCache(cacheName, key, value, 0, ttlSeconds);
          }
      }
docs: Puts an entry to cache, with specific TTL.
  
  @param cacheName
  @param key
  @param value
  @param ttlSeconds