KV Plugin — Memory Driver

This type of driver is already supported by the RoadRunner and does not require any additional installations.

This type of storage, all data is contained in memory and will be destroyed when the RoadRunner Server is restarted. If you need persistent storage without additional dependencies, then it is recommended to use the boltdb driver.


The complete memory driver configuration:

version: "3"

  # User defined name of the storage.
    # Required section.
    # Should be "memory" for the memory driver.
    driver: memory

      # Optional section.
      # Default: 60
      interval: 60


Below is a more detailed description of each of the memory-specific options:


interval: The interval (in seconds) between checks for the lifetime of the value in the cache. For large values of the interval, the cache item will be checked less often for expiration of its lifetime. It is recommended to use large values only in cases when the cache is used without expiration values, or in cases when this value is not critical to the architecture of your application. Note that the lower this value, the higher the load on the system.

Edit this page