Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 841 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 841 Bytes

faasflow-redis-datastore

A faasflow datastore implementation that uses redis to store data

Getting Stated

Deploy redis

Deploy in Kubernets

kubectl apply -f resource/redis-k8s-standalone.yml

Deploy in Swarm

TODO

Use redis dataStore in faasflow

  • Set the stack.yml with the necessary environments
      redis_url: "redis.default.svc.cluster.local:6379"
      redis_master: ""
  • Use the faasflowMinioDataStore as a DataStore on handler.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
}