Start a persistence service that uses Redis™ as the persistence provider. The service requires a connection name and an open
port. Once the service is running, you can connect to the service using the connection name and
create a cache.
Retain a few keys locally.
Add keys and values to the cache.
Count the number of keys-value pairs.
numTotal =
int64
5
numRemote =
int64
3
numLocal =
int64
2
Since keyOne
and keyTwo
were retained before
being written to the cache, they were never written to the persistence service. They are
stored locally until flushed or purged to the persistence service.