Documentation

ping

Test whether the persistence service is reachable

Description

example

ping(ctrl) tests whether the persistence service is reachable. In order to ping a persistence service, it must be started and attached to yourMATLAB® session.

Examples

collapse all

Test whether the persistence service is reachable.

First, create a persistence service controller object and use that object to start the persistence service. Once you have a persistence service running, you can ping the service.

ctrl = mps.cache.control('myRedisConnection','Redis','Port',4519);
start(ctrl)
ping(ctrl)
Sending ping to Redis on localhost:4519.
Redis service running on localhost:4519.

ans =

  logical

   1

Input Arguments

collapse all

Persistence service controller, represented as a mps.cache.Controller object.

Example: ping(ctrl)

See Also

| |

Topics

Introduced in R2018b