fix: review comments and added dataFormat options

Signed-off-by: John Redwood <john.r.k.redwood@gmail.com>
This commit is contained in:
John Redwood
2025-08-13 08:06:43 +10:00
parent 133519ba25
commit 8f776ef81a
4 changed files with 181 additions and 172 deletions
+16
View File
@@ -796,6 +796,22 @@ export interface Config {
*/
mediaType?: 'text/plain' | 'application/json';
/**
* Optional data format configuration.
* If not provided, defaults to text/plain for both key and value.
*/
dataFormat?: {
/**
* Type of the key in the cache.
* @default 'text/plain'
*/
keyType?: 'text/plain' | 'application/json';
/**
* Type of the value in the cache.
* @default 'text/plain'
*/
valueType?: 'text/plain' | 'application/json';
};
/**
* Infinispan server host and port configuration.
* If this is an array, the client will connect to all servers in the list based on TOPOLOGY_AWARE routing.