Extensions for dogpile.cache
============================
This library provides extensions for dogpile.cache. For the time being only one extension is provided, a memory backend that can be limited in size (number of items to cache).
.. image:: https://badge.fury.io/py/dcextensions.png
:target: http://badge.fury.io/py/dcextensions
.. image:: https://travis-ci.org/OnroerendErfgoed/dcextensions.svg?branch=master
:target: https://travis-ci.org/OnroerendErfgoed/dcextensions
.. image:: https://coveralls.io/repos/OnroerendErfgoed/dcextensions/badge.png?branch=master
:target: https://coveralls.io/r/OnroerendErfgoed/dcextensions?branch=master
Installation
------------
To install dcextensions, use pip
.. code-block:: bash
pip install dcextensions
Usage
-----
To use the memory backend
.. code-block:: python
.. code-block:: python
from dogpile.cache import make_region
region = make_region().configure(
'dogpile.cache.memory.limited',
expiration_time = 3600,
arguments = {
'cache_size': 100,
'cache_dict': my_dict
}
)
Both arguments are optional. When use my_dict must be an instance of OrderedDict.
Metadata
Release files for dcextensions 0.0.1
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 |
|---|---|---|---|---|
| dcextensions-0.0.1.tar.gz | 96.3 kB | Without provenance | Details for dcextensions-0.0.1.tar.gz |
Release files / dcextensions-0.0.1.tar.gz
| Download URL | dcextensions-0.0.1.tar.gz |
|---|---|
| Size | 96.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d1fbf9e5ad557f5a708512070bfefc7bc75c570faefcf7cdba3395af5a59bb9
|
|
BLAKE2b-256 checksum How to use checksums |
ef9a61e6603b26fcc82b6def5c17fdeda1eab358f10e6888fe98a78faf3bc0bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dcextensions 0.0.1
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.