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.1.tar.gz (48.2 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.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for unfazed_redis-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e997f780ecab0522fd55ac393b6c3040648c3fa4b94cc361f4a870c245fb8978
MD5 dc2f00dbe63d67bf4de4580c2c8cf406
BLAKE2b-256 28313e2b6ea153693c9f194e17386aeb848177225cea3385b1f0c3ac2cace3b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unfazed_redis-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8bf7233e5f2a8005174df819e1062336bf26fe888bf39adf519a832dbea265
MD5 38e06f98d727a71eb7ce76acaccb4e9b
BLAKE2b-256 b5e4c7db65112f9ac8b923b6ae8aad9454d01c03892a918abe2356f8ab0074f9

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