Enum Class WPCacheKey

java.lang.Object
java.lang.Enum<WPCacheKey>
net.ygbstudio.powerwp4j.models.schema.WPCacheKey
All Implemented Interfaces:
Serializable, Comparable<WPCacheKey>, Constable, CacheKeyEnum, FriendlyEnum

public enum WPCacheKey extends Enum<WPCacheKey> implements CacheKeyEnum
Enumeration of possible cache keys for the WordPress REST API cache. It is the default implementation of the CacheKeyEnum interface.
See Also:
  • Enum Constant Details

    • ALT_TEXT

      public static final WPCacheKey ALT_TEXT
      Alternative text.
    • AUTHOR

      public static final WPCacheKey AUTHOR
      Author ID.
    • CAPTION

      public static final WPCacheKey CAPTION
      Media caption.
    • CLASS_LIST

      public static final WPCacheKey CLASS_LIST
      CSS class list.
    • CONTENT

      public static final WPCacheKey CONTENT
      Rendered content.
    • COMMENT_STATUS

      public static final WPCacheKey COMMENT_STATUS
      Comment status.
    • DATE

      public static final WPCacheKey DATE
      Local date.
    • DATE_GMT

      public static final WPCacheKey DATE_GMT
      GMT date.
    • DESCRIPTION

      public static final WPCacheKey DESCRIPTION
      Description text.
    • EXCERPT

      public static final WPCacheKey EXCERPT
      Excerpt text.
    • FORMAT

      public static final WPCacheKey FORMAT
      Post format.
    • GUID

      public static final WPCacheKey GUID
      Global unique identifier.
    • ID

      public static final WPCacheKey ID
      Post ID.
    • SLUG

      public static final WPCacheKey SLUG
      URL slug.
    • STATUS

      public static final WPCacheKey STATUS
      Post status.
    • STICKY

      public static final WPCacheKey STICKY
      Sticky flag.
    • TITLE

      public static final WPCacheKey TITLE
      Post title.
    • TYPE

      public static final WPCacheKey TYPE
      Post type.
  • Method Details

    • values

      public static WPCacheKey[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WPCacheKey valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public String value()
      Description copied from interface: FriendlyEnum
      Returns the value of the enum constant, which is the actual string to be used in the API.

      Example: If an enum constant is named STATUS_PENDING, the value returned by this method would be "pending", which is the value provided in its constructor.

      Specified by:
      value in interface FriendlyEnum
      Returns:
      the value of the enum constant