multilevel
Combines multiple caches as levels, performing read-through and write-through operations across them.
# Config fields, showing default valueslabel: ""multilevel: []
Examples​
- Hot and cold cache
The multilevel cache is useful for reducing traffic against a remote cache by routing it through a local cache. In the following example requests will only go through to the memcached server if the local memory cache is missing the key.
pipeline:processors:- branch:processors:- cache:resource: leveledoperator: getkey: ${! json("key") }- catch:- bloblang: 'root = {"err":error()}'result_map: 'root.result = this'cache_resources:- label: leveledmultilevel: [ hot, cold ]- label: hotmemory:default_ttl: 60s- label: coldmemcached:addresses: [ TODO:11211 ]default_ttl: 60s