Giter VIP home page Giter VIP logo

Comments (4)

lunny avatar lunny commented on June 27, 2024

有什么进展吗?@admpub

from xorm.

admpub avatar admpub commented on June 27, 2024

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

from xorm.

lunny avatar lunny commented on June 27, 2024

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

from xorm.

lunny avatar lunny commented on June 27, 2024

已经通过https://github.com/go-xorm/cachestore解决。

from xorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.