Enabling Key/Value Maps

By defining a dynamic durable template, administrators enable application programs to use the map API without further administrative action. Programs can use the map API to access a persistence store as if it were a simple database, mapping from keys to values.

Procedure

  1. Coordinate with application developers to determine the requirements.
  2. Create a separate store that will contain only maps.
    If a store contains a map, then that store must not contain any standard durables or shared durables. That is, administrators must configure a separate store for use with the map API and last-value durables.
  3. Define the endpoint in the application.
  4. Associate the endpoint with a persistence store.
  5. Select or define a dynamic durable template.
    Select the built-in template named default_map, with its default parameter values.

    Alternatively, define your own template with durable type Last-Value and set its parameter values.

  6. Associate the endpoint with that template.
  7. Ensure that the persistence servers are running.

Result

Programs can use the template to dynamically create any number of maps, each with a different map name.