Skip to main content

Django redis pull

Project description

Installation

$ pip install django-redis-pull

settings.py

INSTALLED_APPS+=['django_redis_pull']

REDIS_HOST = os.getenv("REDIS_HOST", "localhost")
REDIS_PORT = os.getenv("REDIS_PORT", 6379)
REDIS_DB = os.getenv("REDIS_DB", 0)

migrate

$ python manage.py migrate

Features

  • data pull from redis to database
  • logging
    • logging.debug messages
    • database log
  • admin

Models

model db_table fields/columns
PullData redis_push_data id,queue,data
PushLog redis_push_log id,queue,count,created_at
PushQueue redis_push_queue id,queue

Management commands

name description
redis_pull pull redis data to redis_pull_data (queue,data) table

Examples

$ python manage.py redis_pull

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

django_redis_pull-0.0.3.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

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