Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

api.getSharedCache & api.setSharedCache are the methods for using the Pricefx shared cache. The shared cache is a distributed key-value store (distributed cache), usually powered by https://redis.io/. Shared cache is isolated per-partition. It does not support passing data between partitions unless specially configured to do so.

This cache is accessible to all logics, and so can be very powerful – but also very confusing. It is possible to put something into the shared cache from somewhere like a dashboard logic, then it can be read from somewhere totally different like a price list logic.

...