Accessing Cache APIs From Command Line

DZone 's Guide to

Accessing Cache APIs From Command Line

in this article, learn how to quickly check, set, and delete keys.

· Integration Zone ·
Free Resource

In addition to a GUI, Python and REST APIs, it is now possible to access your Zato caches from command line. Learn from this article how to quickly check, set, and delete keys in this way. It's particularly useful for remote SSH connections to Zato environments.


This functionality will be released in Zato 3.2 (June 2020). Right now, if you would like to use it, Zato needs to be installed from the source.

In Web-Admin

First, let us create a couple of new keys in the GUI — my.key and my.key2 — to work with them later on from the command line.

Command Line

Now, we can get, set, and delete the keys using the CLI. Observe the below and notice that set and delete commands not only carry out what they ought to but they also return the previous value of a given key.






Back to Web-Admin

The last command created a new key. We can confirm its existence in the web-admin:


That's all! Super simple; just log in to an SSH server, point your command line to Zato, and you can access your caches right away.

zato ,integration ,command line ,web admin ,tutorial

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}