prefect.blocks.redis
Classes
RedisStorageContainer
Block used to interact with Redis as a filesystem
Methods:
block_initialization
from_connection_string
redis://creates a TCP socket connectionrediss://creates a SSL wrapped TCP socket connectionunix://creates a Unix Domain Socket connection
connection_string: Redis connection string
RedisStorageContainerinstance
from_host
host: Redis hostnameusername: Redis usernamepassword: Redis passwordport: Redis port
RedisStorageContainerinstance
read_path
path
Args:
path: Redis key to read from
- Contents at key as bytes
read_path
write_path
content to the redis at path
Args:
path: Redis key to write tocontent: Binary object to write