Class InternalProductKeyGenerator
java.lang.Object
es.kukenan.smartfi.microservice.contracts.cache.AbstractKeyGenerator
es.kukenan.smartfi.microservice.contracts.cache.InternalProductKeyGenerator
- All Implemented Interfaces:
org.springframework.cache.interceptor.KeyGenerator
Class in charge to generated a customized key for internal products list.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateBaseKey(String path, Object... params) Generate base key for products.intGet the initial position to obtain params for products key.Methods inherited from class es.kukenan.smartfi.microservice.contracts.cache.AbstractKeyGenerator
generate
-
Constructor Details
-
InternalProductKeyGenerator
public InternalProductKeyGenerator()Default constructor.
-
-
Method Details
-
generateBaseKey
Generate base key for products.- Specified by:
generateBaseKeyin classAbstractKeyGenerator- Parameters:
path- path baseparams- parameters list- Returns:
- the base key
-
getInitialPosition
public int getInitialPosition()Get the initial position to obtain params for products key.- Specified by:
getInitialPositionin classAbstractKeyGenerator- Returns:
- the initial position
-