Cache Encoding and Marshalling

Red Hat Data Grid 8.2

Encoding Data Grid caches and marshalling Java objects

Red Hat Customer Content Services

Abstract

Data Grid caches can store keys and values in different encodings. This document describes how Data Grid encodes data for remote and embedded caches and explains how to use various media types with your applications. Additionally this guide describes how to use the Data Grid implementation of the ProtoStream API to marshall Java objects as Protocol Buffers (Protobuf). You can also find information about adding ProtoStream annotations to your Java classes and then generating Protobuf schema for marshalling capabilities as well as indexed queries.