Not sure why you need to put a copy of the data into a cache to begin
with? The global store can actually be used like a cache directly.

But yes, you can set a restore listener via
`KafkaStreams#setGlobalStateRestoreListener`


-Matthias

On 11/17/20 7:40 PM, Navneeth Krishnan wrote:
> Hi All,
> 
> I have a global state and the same in a local cache. Whenever there is an
> update to state I'm updating the local cache as well so that they are
> consistent. But when the state gets restored the cache is empty. Is there a
> way to attach a callback function or some way to get the state data during
> restore and update the cache. Thanks for your help.
> 
> Regards,
> Navneeth
> 

Reply via email to