prefect.blocks
redis
prefect.blocks.redis
Classes
RedisStorageContainer
Block used to interact with Redis as a filesystem
Methods:
block_initialization
from_host
Create block from hostname, username and password
Args:
host
: Redis hostnameusername
: Redis usernamepassword
: Redis passwordport
: Redis port
Returns:
RedisStorageContainer
instance
from_connection_string
Create block from a Redis connection string
Supports the following URL schemes:
redis://
creates a TCP socket connectionrediss://
creates a SSL wrapped TCP socket connectionunix://
creates a Unix Domain Socket connection
See [Redis docs](https://redis.readthedocs.io/en/stable/examples /connection_examples.html#Connecting-to-Redis-instances-by-specifying-a-URL -scheme.) for more info.
Args:
connection_string
: Redis connection string
Returns:
RedisStorageContainer
instance