Redis
Featureform supports Redis as an Inference Store.

Implementation

In this configuration, one Redis hash will be created per feature. It will map entities to their feature value. A metadata hash will also be stored in Redis that allows Redis to maintain its own state. This is used in conjunction with Featureform's Etcd service to achieve consistency between the two.

Configuration

First we have to add a declarative Redis configuration in Python. In the following example, only name is required, but the other parameters are available.
redis_config.py
1
import featureform as ff
2
3
ff.register_redis(
4
name = "redis",
5
description = "Example inference store",
6
team = "Featureform",
7
host = "0.0.0.0",
8
port = 6379,
9
password = "",
10
db = 0,
11
)
Copied!
Once our config file is complete, we can apply it to our Featureform deployment
1
featureform apply redis_config.py --host $FEATUREFORM_HOST
Copied!
We can re-verify that the provider is created by checking the Providers tab of the Feature Registry.