emilhe / dash-extensions

The dash-extensions package is a collection of utility functions, syntax extensions, and Dash components that aim to improve the Dash development experience

Home Page:https://www.dash-extensions.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverside() versus ServersideOutput()

areed145 opened this issue · 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.

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 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.

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?