rvcache -store filename
[-merge shallow | deep]
The program rvcache stores data from recent messages, indexed by subject name, and automatically sends the cached data to new listeners.
Given a set of one or more subject names, rvcache listens for messages addressed to those subjects. Each time it receives such a message, it stores the message’s data content.
When a client program queries for a cached subject, rvcache sends a reply message with the current cached value.
Browser Administration Interface
To administer or configure rvcache, view http://rvcache_host:http_port with a web browser. When the program starts, it prints the actual HTTP administration port.
rvcache can run in either of two states—running or idle.
When running, rvcache listens to subjects, caches message values, and responds to queries.
When idle, rvcache does not operate; however, the browser administration interface is available for configuring parameters.
Initial Subject Configuration
The first time you run rvcache, you must configure its subjects and change its state to running. After that, rvcache reads the subject list from its file.
rvcache stores the data in process memory and in a disk file. The command line parameter -store specifies the name of the disk file; if the file exists when rvcache starts, then rvcache reads the file to initialize its configuration parameters and to populate its cache in process memory.
The command line parameter -sync specifies the interval at which to synchronize the file-based store with process-based store.
Steps as follows :