Skip to main content

fastack-cache

fastack-cache is a caching plugin for fastack ❤️

This plugin is inspired by the django cache framework and django-redis!

Supported cache backend:

  • Redis:
    • fastack_cache.backends.redis.RedisBackend - Sync version
    • fastack_cache.backends.aioredis.AioRedisBackend - Async version

Installation

pip install -U fastack-cache

Usage

Add the plugin to your project configuration:

PLUGINS = [
    "fastack_cache",
    ...
]

Configuration:

REDIS_HOST = "localhost"
REDIS_PORT = 6900
REDIS_DB = 0
CACHES = {
    # cache name
    "default": {
        # cache backend
        "BACKEND": "fastack_cache.backends.redis.RedisBackend",
        # Cache options to be passed to the Redis(...) class
        "OPTIONS": {
            "host": REDIS_HOST,
            "port": REDIS_PORT,
            "db": REDIS_DB,
        },
        # Serializer for converting data into cache
        "SERIALIZER": {
            "CLASS": "fastack_cache.serializers.JSONSerializer",
            "OPTIONS": {
                # Option to pass when dumps() method in serializer class is called
                "DUMPS": {},
                # Option to pass when loads() method in serializer class is called
                "LOADS": {}
            }
        }
    }
}

Metadata

Release files for fastack-cache 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastack-cache 1.2.0
File Size Uploaded Provenance Actions
fastack-cache-1.2.0.tar.gz 7.3 kB Without provenance Details for fastack-cache-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastack-cache 1.2.0
File Interpreter ABI Platform Actions
fastack_cache-1.2.0-py3-none-any.whl Python 3 none any Details for fastack_cache-1.2.0-py3-none-any.whl

Total release size: 18.1 kB

Release files / fastack-cache-1.2.0.tar.gz

Download URL fastack-cache-1.2.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8a09d8d3332a806c38acb301ee661b10bf8d7d8f95d77f90f69b2e0fc4b230af
BLAKE2b-256 checksum
How to use checksums
a7f8bd8da77464be5a9cc2a8224a501d2d68b26521e87b4d561fba9b81deb3d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.8.2 Linux/5.11.0-1025-azure

Release files / fastack_cache-1.2.0-py3-none-any.whl

Download URL fastack_cache-1.2.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1e00fdfa4511ab357940c05b8899b8348261f02f7008ac027a8299a1ca42627
BLAKE2b-256 checksum
How to use checksums
f1089bded839f2fc98605f6182403a5183ccdef6a327789b50f5ce3cd2d1e448
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.8.2 Linux/5.11.0-1025-azure

Security for fastack-cache 1.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page