You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or alternatively you can add pyramid_dogpile_cache to the pyramid.includes list in the configuration:
pyramid.includes = pyramid_dogpile_cache
Usage in Code
pyramid_dogpile_cache.get_region is the only API.
frompyramid_dogpile_cacheimportget_regionregion=get_region('foo')
# ... do whatever operation on the cache region ...
Settings
dogpile_cache.regions
A list of region names to initialize through the factory.
Regions can be separated by either spaces or commas.
dogpile_cache.backend
The default backend for cache regions. You can later override it with the region-specific setting.
dogpile_cache.expire
The default expiration time for cache regions. You can later override it with the region-specific setting.
dogpile_cache.arguments.*
The arguments for the default backend. You can later override it with the region-specific setting.
dogpile_cache.function_key_generator
Passed to make_region().
dogpile_cache.key_mangler
Passed to make_region().
dogpile_cache.async_creation_runner
Passed to make_region().
dogpile_cache.REGION.*
Each set of region-specific settings is prefixed with the region name followed by the setting name. For example, settings for region foo can be like the following: