Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

memcache cache provider support #70

Closed
lunny opened this issue Mar 12, 2014 · 4 comments
Closed

memcache cache provider support #70

lunny opened this issue Mar 12, 2014 · 4 comments
Assignees

Comments

@lunny
Copy link
Member

lunny commented Mar 12, 2014

No description provided.

@admpub admpub self-assigned this Apr 13, 2014
@lunny lunny changed the title 缓存memcache支持 memcache cache provider support May 31, 2014
@lunny
Copy link
Member Author

lunny commented Oct 28, 2014

有什么进展吗?@admpub

@admpub
Copy link
Member

admpub commented Oct 28, 2014

这个早都做好了,只是上次跟你说的要获取所有model结构体的实例,否则按照此包
https://github.com/go-xorm/xorm-redis-cache
的方法在重启执行文件后gob解码有bug。必须获取所有model结构体的实例注册到gob才能解决,关于如何获取,目前还没有找到好的通用的办法,我自己程序上目前采用的是一个工具自动读取搜索model文件的名称,生成一个go文件,其内包含所有model结构体实例的集合,但是这个方法稍显麻烦,不具有通用性,所以一直没有发布。对于这个问题,不知道你有没有好的简单一点的办法? @lunny

@lunny
Copy link
Member Author

lunny commented Oct 28, 2014

可以尝试下在解析XORM标记时进行注册。

@lunny
Copy link
Member Author

lunny commented Jan 2, 2016

@lunny lunny closed this as completed Jan 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants