A faasflow datastore implementation that uses redis to store data
kubectl apply -f resource/redis-k8s-standalone.yml
TODO
- Set the
stack.yml
with the necessary environments
redis_url: "redis.default.svc.cluster.local:6379"
redis_master: ""
- Use the
faasflowMinioDataStore
as a DataStore onhandler.go
redisDataStore "github.com/chennqqi/faas-flow-redis-datastore"
func DefineDataStore() (faasflow.DataStore, error) {
// initialize redis DataStore
ds, err := redisDataStore.InitFromEnv()
if err != nil {
return nil, err
}
return ds, nil
}