Is it possible to manually cache to disk?

It’s possible to cache to disk when applying automatic caching:

But how can I cache to disk when caching manually?

I tried:

data = pn.state.as_cached(

Getting: an unexpected keyword argument 'to_disk'
1 Like

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