Transacción Cache Modelo de Datos
Lista de Colección
TransactionCacheEntry
Almacena cualquier caching entradas que han sido guardadas a través de la PersistentTransactionCacheService. Para más información sobre la transacción caching por favor, consulte Caché de Transacciones.
Diagrama de Visión General
A continuación se presenta un diagrama que muestra la colección transactionCacheEntry en su totalidad:
Descripción General de la Colección
TransactionCacheEntry
Campos
A continuación se presentan los campos para la colección transactionCacheEntry:
| Field | Description | Example |
|---|---|---|
_id |
PK - Autogenerated by MongoDB |
63e0d35dcbd3c015141aad53 |
messageId |
A unique Id to identity duplicate cache entries, specifically across retries, provided by the implementation. |
6450d813d5f96f0337393091 |
hash |
A MD5 hash generated by the implementation specific extractor function fields. Used for identifying a unique record. |
60c8340cd0c9e74afa3688a00aa15cb6 |
creationDate |
The date the cache record was created. |
2023-05-02T09:29:55.124Z |
type |
The application specific enum type you want to store the cached data against. Used to identity different types of transactions or objects. |
PACS_008 |
content |
An object which contains the actual content you want to store in the cache. |
{"_id" : "a0dc5cd2-9fb8-4e1a-88cf-f836e9b4d02c", "payload" : "Some payload", "_class" : "com.iconsolutions.ipf.test.app.config.TestConfig$InputRequest"} |
Ejemplo de Registro
{
"_id": "644be8e6639eb650c73d1c9b",
"hash": "f97b41223f1597f73915f5a1cf2ca1e7",
"creationDate": "2023-04-28T15:40:22. 391Z",
"type": "TYPE_ONE",
"content": {
"_id": "4b8f58d8-b33f-472c-94f0-d263b2115b92",
"payload": "Test",
"_class": "com.iconsolutions.ipf.test.test.app.config. TestConfig$InputRequest"
},
"_class": "com.iconsolutions.ipf.core.platform.txcache.model. TransactionCacheEntry"
}
Índices
A continuación se presentan los índices para la colección transactionCacheEntry:
| Index Name | Fields | Description |
|---|---|---|
_id_ |
_id (ascending) |
ObjectId field generated by MongoDB. |
hash_1_type_1 |
hash (ascending) - type (ascending) |
Used when searching records. |
hash_1_type_1_messageId_1 |
hash (ascending) - type (ascending) - messageId (ascending) |
Used when searching for records along with a messageId, for uniqueness. |
type_1_creationDate_-1 |
type (ascending), creationDate (descending) |
Used when purging the transaction cache using the TransactionCachePurgingScheduler |