Skip to content

faasflow/faas-flow-redis-datastore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%