mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
re-added in socket streaming for transcode processes
This commit is contained in:
commit
8b6b16232b
6 changed files with 672 additions and 497 deletions
9
core/utils.py
Normal file
9
core/utils.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import redis
|
||||
from django.conf import settings
|
||||
|
||||
# Global Redis connection (Singleton)
|
||||
redis_client = redis.Redis(
|
||||
host=getattr(settings, "REDIS_HOST", "localhost"),
|
||||
port=6379,
|
||||
db=int(getattr(settings, "REDIS_DB", "0"))
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue