gorse-io/gorse

Redis as data_store fully supported or not?

开放

#534 创建于 2022年8月25日

 (2 条评论) (0 个反应) (0 位负责人)Go (897 个派生)user submission
help wanted

仓库指标

星标
 (9,686 个星标)
PR 合并指标
 (平均合并 8天 2小时) (30 天内合并 25 个 PR)

描述

Hello, dear developers i have a question about use redis as data_store in Gorse. I look in sources and saw: https://github.com/gorse-io/gorse/blob/master/storage/data/redis.go

Redis as data_store fully supported in latest release version of gorse?

Can I simply add in validator here and try to use Gorse?

func (config *Config) Validate(oneModel bool) error { validate := validator.New() if err := validate.RegisterValidation("data_store", func(fl validator.FieldLevel) bool { prefixes := []string{ storage.RedisPrefix,

Thanks

贡献者指南