Is it possible to manually cache to disk?

It’s possible to cache to disk when applying automatic caching:
https://panel.holoviz.org/how_to/caching/memoization.html#disk-caching

But how can I cache to disk when caching manually?
https://panel.holoviz.org/how_to/caching/manual.html

I tried:

data = pn.state.as_cached(
    'data',
    load_data,
    to_disk=True,
)

Getting:

...got an unexpected keyword argument 'to_disk'
1 Like

I don’t think its supported. You can file a feature request or use DiskCache directly.