001/* 002 * This library is part of OpenCms - 003 * The Open Source Content Management System 004 * 005 * Copyright (c) Alkacon Software GmbH & Co. KG (https://www.alkacon.com) 006 * 007 * This library is free software; you can redistribute it and/or 008 * modify it under the terms of the GNU Lesser General Public 009 * License as published by the Free Software Foundation; either 010 * version 2.1 of the License, or (at your option) any later version. 011 */ 012 013package org.opencms.loader.imagecache; 014 015/** 016 * Provides metadata which was obtained as part of a preceding image cache read.<p> 017 * 018 * This avoids an additional metadata request when access-triggered renewal evaluates an entry after successful 019 * delivery.<p> 020 */ 021public interface I_CmsImageCacheAccessMetadataProvider { 022 023 /** 024 * Returns recently observed metadata for an entry without accessing the backend.<p> 025 * 026 * @param key the image cache key 027 * @return the metadata, or {@code null} if no metadata is locally available 028 */ 029 CmsImageCacheEntry getRecentAccessMetadata(String key); 030}