Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Confused about Long Callback Caching

$
0
0

Hi. I’m still new, and I’m really confused about how caching in long callbacks work. The example given in the doc at Long Callbacks | Dash for Python Documentation | Plotly shows caching the result of a function.

I’m having trouble with understanding what’s the lambda here in the long callback function signature

long_callback_manager = DiskcacheLongCallbackManager(
    cache, cache_by=[lambda: launch_uid], expire=60,
)

Furthermore, how would we cache just 2 outputs of a callback using cache_args_to_skip? Could someone please show me an example?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles