Configuring Cache
This section explains the API configuration for cache service.
Generic configuration microservice requires cache configuration, which helps to determine the application configuration that should be stored in the cache service. Cache configuration data is stored in cache_configuration table. Generic configuration microservice contains five APIs to manage the cache configuration. You can configure which application configuration data should be stored in the cache service with the help of these APIs.
Management APIs
This section describes the generic configuration microservice APIs for cache configuration. The following tables lists the APIs and their implementation methods.
| OperationId | Implementation |
|---|---|
|
AddCacheConfiguration |
com.temenos.microservice.genericconfig.function.AddCacheConfigurationImpl |
|
GetCacheConfiguration |
com.temenos.microservice.genericconfig.function.GetCacheConfigurationImpl |
|
UpdateCacheConfiguration |
com.temenos.microservice.genericconfig.function.UpdateCacheConfigurationImpl |
|
DeleteCacheConfiguration |
com.temenos.microservice.genericconfig.function.DeleteCacheConfigurationImpl |
|
GetAllCacheConfiguration |
com.temenos.microservice.genericconfig.function.GetAllCacheConfigurationImpl |
POST/system/cache/configurationgroups/{groupId}/configuration
http://<IPADDRESS>:7006/ms-genericconfig-api/api/v1.0.0/system/cache/configurationgroups/{groupId}/configuration{
"configName": [
"paymentscreator",
],
"expires": "200",
"data": [{}]
}
{
"groupId": "SECURITY.POLICY",
"configNames": [
" paymentscreator "
],
"expires": "200",
"data": [
{}
]
}
GET/system/cache/configurationgroups/{groupId}/configuration
http://<IPADDRESS>:7006/ms-genericconfig-api/api/v1.0.0/system/cache/configurationgroups/{groupId}/configuration
{
"groupId": "SECURITY.POLICY",
"configNames": [
" paymentscreator "
],
"expires": "200",
"datas": [
{}
]
}
PUT/system/cache/configurationgroups/{groupId}/configuration
http://<IPADDRESS>:7006/ms-genericconfig-api/api/v1.0.0/system/cache/configurationgroups/{groupId}/configuration{
"configName": [
"paymentapprover"
],
"mode": "add",
"expires": "200",
"data": [
{}
]
}
{
"groupId": "SECURITY.POLICY",
"configNames": [
" paymentscreator ",
" paymentapprover "
],
"expires": "200"
}
There are two modes available:
- Add - Used to add the configuration names with existing configuration names.
- Delete - Used to delete the configuration names from existing configuration.
DELETE/system/cache/configurationgroups/{groupId}/configuration
{
"groupId": "SECURITY.POLICY",
"configNames": [
" paymentscreator "
],
"expires": "200",
"datas": [
{}
]
}GET/system/cache/configurationgroups/configuration
http://<IPADDRESS>:7006/ms-genericconfig-api/api/v1.0.0/system/cache/configurationgroups/configuration
{
"items": [
{
"groupId": "SECURITY.POLICY",
"configNames": [
"paymentapprover"
],
"expires": "200"
}
]
}
In this topic