Class CmsImageCacheEntry

java.lang.Object
org.opencms.loader.imagecache.CmsImageCacheEntry

public final class CmsImageCacheEntry extends Object
Backend-neutral metadata for an image cache entry.

  • Constructor Details

    • CmsImageCacheEntry

      public CmsImageCacheEntry(String key, long length, Instant lastModified, String revision)
      Creates an image cache entry.

      Parameters:
      key - the cache key
      length - the entry length
      lastModified - the last modification time, or null
      revision - an opaque backend revision, or null
  • Method Details

    • getKey

      public String getKey()
      Returns the cache key.

      Returns:
      the cache key
    • getLastModified

      Returns the last modification time.

      Returns:
      the last modification time, or null
    • getLength

      public long getLength()
      Returns the entry length.

      Returns:
      the entry length
    • getRevision

      public String getRevision()
      Returns the opaque backend revision.

      Returns:
      the backend revision, or null