Skip to main content

Simple to use redis in flask.

Project description

flask-redis-ex

Simple to use redis in flask.

Configuration

configure REDIS_URL within your Flask config.

  • REDIS_URL required
  • REDIS_DECODE Configure the decode_responses for redis. default:false

Usage

from flask import Flask
from flask_redis_ex import redis_client, RedisFlask

app = Flask(__name__)
app.config["REDIS_URL"] = "redis://localhost:6379/0"

RedisFlask(app)

@app.route('/')
def index():
    return redis_client.info()

custom redis

import redis

redis = redis.Redis.from_url("redis://localhost:6379/0")
RedisFlask(app, redis)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

flask_redis_ex-0.0.4-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file flask_redis_ex-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: flask_redis_ex-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for flask_redis_ex-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 68d9864aa02d5109de32f9525367d6c885ff450f351b66053a4107d682e6d65c
MD5 8657790499ddd1f84022f489b3bc9b74
BLAKE2b-256 b33a1fef9f41d599e2dad8e57dd87f5b3f51d97f6d6786a2dbdcbe9b7c8a8c01

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