ivanakcheurov / desh.net

Parser, engine and tools for desh language in .net
MIT License
2 stars 0 forks source link

Implement variable evaluation caching in the standard Variable Evaluator #6

Open ivanakcheurov opened 5 years ago

ivanakcheurov commented 5 years ago

Request

As a user of Desh, when I provide a dictionary of variable name to lambda that returns value of that variable to DeshFacade, those lambdas may depend on external services and be time-consuming or expensive to execute, then I want all subsequent evaluations of the same variable to be fulfilled from cache.

Solution

Add Dictionary of variable name - variable value to the VariableEvaluator and use it as cache.