ruby - Is a global variable defined inside a Sinatra route shared between requests? - Stack Overflow
-
Web site excerpt: Say I've got: get '/' do $random = Random.rand() response.body = $random end If I have thousands of requests per second coming to /, will the $random be shared and 'leak' outside the context or...
-
Link to site: ruby - Is a global variable defined inside a Sinatra route shared between requests? - Stack Overflow