Introduction
pyramid_dogpile_cache is a tiny dogpile cache factory for Pyramid.
Setup
Put config.include('pyramid_dogpile_cache') somewhere in your startup code:
config = Configurator(...)
config.include('pyramid_dogpile_cache')
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.
from pyramid_dogpile_cache import get_region
region = 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:
; global settings dogpile_cache.backend = file ; settings for foo dogpile_cache.foo.backend = redis dogpile_cache.foo.arguments.host = 127.0.0.1 dogpile_cache.foo.arguments.port = 6379 dogpile_cache.foo.arguments.db = 0 dogpile_cache.foo.arguments.redis_expiration_time = 7200 dogpile_cache.foo.arguments.distributed_lock = 1
Contributors
Moriyoshi Koizumi
Changelog
0.0.1
first release
0.0.2
minor documentation fixes
0.0.3
license inclusion (MIT)
0.0.4
packaging fix
Metadata
Release files for pyramid_dogpile_cache 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyramid_dogpile_cache-0.0.4.tar.gz | 5.2 kB | Without provenance | Details for pyramid_dogpile_cache-0.0.4.tar.gz |
Release files / pyramid_dogpile_cache-0.0.4.tar.gz
| Download URL | pyramid_dogpile_cache-0.0.4.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
220ef5fc2bf78f579b56986b9eb9cb44e3256b106566c154745e0a0e9070bcc2
|
|
BLAKE2b-256 checksum How to use checksums |
1deebc8129aec655b1a1d58e0b76d4dd46494924986115ade46fc4a00411392c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid_dogpile_cache 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.