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.
| Property | Type | Values | Default |
|---|---|---|---|
| Cache | select | Redis, Memcached | Redis |
| Database | select | Postgres, MySQL, MongoDB | Postgres |
| TTL | text | free text | 5m |
How to use it
- Open the editor and press Components, then choose the Smart tab.
- Click Cache-aside to place it, or drag it to an exact spot.
- Adjust its properties, then connect your own shapes to its ports.