What do I need to know about caching in Beaker?
This package contains the “front-end” classes and functions for Beaker caching. The Cache and CacheManager classes are included, as well as the region_decorate() , region_invalidate() function decorators. Dictionary of ‘region’ arguments. A “region” is a string name that refers to a series of cache configuration arguments.
Table of Contents
How to invalidate virtual file system cache?
Clear file system cache and local history – Clear the virtual file system cache along with information stored in local history. This action can be useful for troubleshooting when the usual cache invalidation is not enough to resolve the problem.
What happens to local history when you invalidate a cache?
Local history is not deleted when you invalidate the cache unless you explicitly enable this option in the Invalidate Caches dialog. However, please note that Local History has a retention period of 5 business days by default. From the main menu, select File | Invalidate caches.
How to invalidate system cache in IntelliJ?
Clear the system cache From the main menu, select File | Invalidate caches/reboot. In the Invalidate Caches dialog box, select an action. You can either invalidate the caches and restart the IDE or just restart the IDE.
Why do you need arguments to the region decorator in Beaker?
The region decorator requires arguments if there are more than two functions with the same name in the same module. This is because the namespace used for the function cache is based on the name of the functions and the module. The function being decorated should only be called with positional arguments.
Is the argument itself part of the cache key?
Decorate a function so that its returned result is cached, using a “region” to indicate the cache arguments. The decorator can also be used with object methods. The self argument is not part of the cache key. This is based on the actual name of the string being in the first position of the argument (new in 1.6):