dash-extensions icon indicating copy to clipboard operation
dash-extensions copied to clipboard

Serverside() versus ServersideOutput()

Open areed145 opened this issue 2 years ago • 3 comments

Does the new Serverside function memoize the output?

My recollection was that ServersideOutput used memoization, but this doesnt appear to be the case on the replacement.

areed145 avatar Dec 11 '23 13:12 areed145

The ServersideOutput has the option to use memoizaton. The Serverside object doesn't have that (at least not yet). I am considering adding it for feature parity, but I haven't gotten around to it yet.

emilhe avatar Dec 27 '23 14:12 emilhe

@emilhe Seems like the ServersideOutput has been removed now along with session_check and arg_check? Is the functionality replaced by EnrichedOutput and Serverside? Maybe you have a few examples about session_check and arg_check? I am having problems redis caching my callback variables after updating from 0.1.13 to latest version in order to enable multiple backend caching. It is not obvious how storage_type, memoize, arg_check and session_check should be set for a serverside variables to make caching work.

halvgaard avatar Feb 06 '24 10:02 halvgaard

I have been largely using dash extensions (which is awesome) for the last few years to combine serverside caching with memoization but after upgrading from a much older version to 1.0.18 I now seem to have callbacks firing even though memoize is True. @emilhe did memoisation ever get added to Serverside before ServersideOutput got deprecated?

reesg1234 avatar Jul 26 '24 10:07 reesg1234