Skip to content

Cache ​

Share a Redis cache with C# scripts and other systems. Redis read looks a key up, Redis write stores a record (or a text) with an expiry, optionally only if the key is missing, and Redis delete removes a key and returns what was stored. Keys are expressions over the record (customer:{data.CustomerId}); values are JSON, the same bytes the scripts write. Both StackExchange.Redis strings and the IDistributedCache format are supported.

text
Input → Redis read ─ Found ───────────────────────────────→ continue
             └──── NotFound → load from source → Redis write ─ Written → continue

Plugins ​

PluginWhat it doesPins
Redis deleteDeletes one key from a Redis cache and emits what was stored under it. Use it to invalidate cache entries or to take a value out of the cache once.Input, Deleted, NoData
Redis readReads one key from a Redis cache and emits the stored value. Use it for cache lookups, also on keys that C# scripts write with StackExchange.Redis or IDistributedCache.Input, Found, NotFound
Redis writeWrites one key to a Redis cache with an expiry: the whole input as JSON, or a text from an expression. Use it to fill a cache, for idempotency (write only if missing) and to share values with C# scripts that use StackExchange.Redis or IDistributedCache.Input, Written, Exists

Viaducta documentation