Modelo de datos de Transaction Cache
Lista de colecciones
TransactionCacheEntry
Almacena cualquier entrada de caché que se haya guardado a través de PersistentTransactionCacheService. Para más información sobre transaction caching consulta Transaction Caching.
Diagrama general
A continuación se muestra un diagrama que muestra la colección transactionCacheEntry en su totalidad:
Descripción general de la colección
TransactionCacheEntry
Campos
A continuación se muestran los campos de 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"} |
Registro de ejemplo
{
"_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 muestran los índices de 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 |