redis.go 495 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
package redis_plugin_proxy

import (
	"github.com/eolinker/goku-plugin"
	"github.com/eolinker/goku/common/redis-manager"
)

func Create() goku_plugin.RedisManager {

	return &RedisManager{
		def: &RedisProxy{
			redisClient: redis_manager.GetConnection(),
		},
	}

}

type RedisManager struct {
	def goku_plugin.Redis
}

func (m *RedisManager) Default() goku_plugin.Redis {
	return m.def
}

func (m *RedisManager) Get(name string) (redis goku_plugin.Redis, has bool) {
	panic("not implement")
}