Cache-aside

Smart component · Data

The application checks the cache first and loads from the database on a miss.

Properties

Change any of these in the properties panel and the component regenerates in place. Labels, colours and arrows you attached yourself are kept.

Properties of Cache-aside
PropertyTypeValuesDefault
CacheselectRedis, MemcachedRedis
DatabaseselectPostgres, MySQL, MongoDBPostgres
TTLtextfree text5m

How to use it

  1. Open the editor and press Components, then choose the Smart tab.
  2. Click Cache-aside to place it, or drag it to an exact spot.
  3. Adjust its properties, then connect your own shapes to its ports.

Open the editor

Seen in these templates