Singleton in Functions

Copper Contributor

Quick question, is there any best practice to maintain an object with static information so that i dont have to repopulate on each fn call?

 

Sorry maybe this is explained in the docs, just point me to where to look. 

Thanks

2 Replies
Yes you can do this. What language are you using?

@Anthony Chu , using c# over AzFun on windows host.

(in our webapi solution we have a singleton object which mantains some configuration information and data related to tenants, nothing stateful but save us some time during execution)

thxs