Skip to main content

Redis client for Unfazed

Project description

Unfazed Redis

Unfazed-Redis borned to solve namespace issues in Redis.

Installation

pip install unfazed-redis

Quick Start

Add settings to your project

# settings.py

UNFAZED_SETTINGS = {
    "CACHE": {
        "default": {
            "BACKEND": "unfazed_redis.backends.namespaceclient.NamespaceClient",
            "LOCATION": "redis://localhost:6379",
            "OPTIONS": {
                "PREFIX": "my_prefix",
                "VERSION": "1",
            }
        }
    }
}

Use in your project

# services.py

from unfazed.cache import caches

async def my_service():

    cache = caches["default"]
    await cache.set("my_key", "my_value")
    value = await cache.get("my_key")
    print(value)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unfazed_redis-0.0.2.tar.gz (48.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unfazed_redis-0.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file unfazed_redis-0.0.2.tar.gz.

File metadata

  • Download URL: unfazed_redis-0.0.2.tar.gz
  • Upload date:
  • Size: 48.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.21

File hashes

Hashes for unfazed_redis-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cce53f5b666012e09115b792efba52c85bcc1185aae1cd471791b976afa21c08
MD5 945f236b7edbd06910451d0e78fd4c2f
BLAKE2b-256 c4a7ef678351b4046ae8ae79f7502bec9b7e3d5bf6b10a533520203af3b364cf

See more details on using hashes here.

File details

Details for the file unfazed_redis-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for unfazed_redis-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 edc397f6ecdb63b94a7e4cf3892dce8d9046a30982f166b40a4a8acb4e140d41
MD5 25f91642369cb6f507332829c3151f17
BLAKE2b-256 2ad799916e0a7f54323e59816d31d4af811c57dbd49de86ea56eb96450d2d79b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page