The documentation of clear! and clear_all are quite similar:
Public: Removes all the request-local variables
Public: Clears all the request-local variable stores
However, clear_all! is something you almost never want to call: it immediately destroys the information that may be in use by other threads.
It would be nice to document this. Maybe something along the lines of:
clear!
Removes all the request-local variables for the current request. This method will clear the local storage for the currently executing request.
clear_all!
Clears all the request-local variable stores. This method will clear the local storage for all requests. This method should not be called during normal operation as it will destroy the storage of unrelated threads.
The documentation of
clear!
andclear_all
are quite similar:However,
clear_all!
is something you almost never want to call: it immediately destroys the information that may be in use by other threads.It would be nice to document this. Maybe something along the lines of: