Buckets:

download
raw
555 Bytes
import os
import redis
# Redis configuration
REDIS_HOST = os.environ.get('REDIS_HOST', 'localhost')
REDIS_PORT = int(os.environ.get('REDIS_PORT', '6379'))
REDIS_PASSWORD = os.environ.get('REDIS_PASSWORD', '')
REDIS_DB = int(os.environ.get('REDIS_DB', '0'))
def create_redis_client():
return redis.Redis(
host=REDIS_HOST,
port=REDIS_PORT,
password=REDIS_PASSWORD,
db=REDIS_DB,
socket_timeout=2,
)
def get_redis_authed_url():
return f'redis://:{REDIS_PASSWORD}@{REDIS_HOST}:{REDIS_PORT}/{REDIS_DB}'

Xet Storage Details

Size:
555 Bytes
·
Xet hash:
7484a11859b777b3e350e9123e47bf93d42038baded6635b7036be329a5d1da2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.