Using the Solace JavaScript API with Solace Cache
If you have Solace Cache, you can use the Solace JavaScript API to make cache requests for topics. The cache requests must include the name of the Distributed Cache, Cache Cluster, or Solace Cache Instance to issue the request to and the topics requested.
Cache requests made using the Solace JavaScript API are asynchronous only.
If a cache request is made to a Distributed Cache or a Cache Cluster, the request is delivered to one of the Solace Cache Instances in a Cache Cluster that are configured to listen for the same topics, and that single Solace Cache Instance responds to the cache request.
Cache responses are addressed back to the originating client on an automatically generated peer-to-peer topic contained within the request.
The result of a cache request is indicated by return codes or events provided by the Cache Instance. Any messages that are returned for the request are handled through the message receive callback associated with the session that the cache session is created in. For more information about configuring and details about Solace Cache, see Solace Cache.
For information about using the Solace JavaScript API with Solace Cache, see Using Solace Cache With the Solace JavaScript API.
For Solace JavaScript API versions that are compatible with Solace, see Solace Cache Client Support in Feature Support of Solace Messaging APIs .