Interface CacheKeyEnum
- All Superinterfaces:
FriendlyEnum
- All Known Subinterfaces:
ClassValueKeyEnum
- All Known Implementing Classes:
TaxonomyValues,WPCacheKey
This interface provides a way to create enum constants that represent keys in the JSON local
cache and use them with utilities in PowerWP4j. These keys represent values that can be isolated
or inside arrays.
In reality, a key could be any string that you know is contained in the cache data structure,
and most libraries allow you to get away with providing this as a simple string. However,
PowerWP4j favors predictability and treats everything as part of a pattern. If, for some reason,
a method taking a CacheKeyEnum does not work as expected with a value from a class that
implements it, it only means that:
- The cache file does not contain that element
- The enum implementation may not be following the
FriendlyEnumstyle - There could be an error in the pattern followed by PowerWP4j and requires attention
- Author:
- Yoham Gabriel B. @YGBStudio
-
Method Summary
Methods inherited from interface net.ygbstudio.powerwp4j.base.extension.enums.FriendlyEnum
value