public interface SkuMetadataCacheService
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addToCache(String cacheKey,
          Map<String,FieldMetadata> metadata) | 
| String | buildCacheKey(String productId)Builds out the cache key to use for the other methods | 
| Map<String,Map<String,FieldMetadata>> | getEntireCache()Not generally used but could be useful in some scenarios if you need to invalidate the entire cache | 
| Map<String,FieldMetadata> | getFromCache(String cacheKey) | 
| void | invalidateFromCache(String cacheKey)Allows for outside sources to invalidate entries from the Sku Metadata cache that
 is being used during sku inspects. | 
| boolean | useCache()Whether or not to use the cache. | 
boolean useCache()
Map<String,Map<String,FieldMetadata>> getEntireCache()
buildCacheKey(String)String buildCacheKey(String productId)
productId - optional productId, can be nullMap<String,FieldMetadata> getFromCache(String cacheKey)
boolean addToCache(String cacheKey, Map<String,FieldMetadata> metadata)
void invalidateFromCache(String cacheKey)
cacheKey - from buildCacheKey(String)Copyright © 2020. All rights reserved.