gomdise
gomdise is a simple orm alike library aiming to provide complex data structure store/fetch services for redis
Create a gomdise instance by calling
gomdise.New(pool redis.Pool)
To save data, invoke the method of gomdise instance (example)
gomdise.Save(arg interface{})
- Any exported fields of a struct will be saved by gomdise.
- To use the customized redis key for the data argument, implement mdl.Model interface
- Save can not work with interface type as well
To find data, invoke the method of gomdise instance (example)
gomdise.Find(key string, arg interface{})
- The arg parameter should be an pointer value, more actually, an addressable and settable parameter
- The interface{} type is currently not supported for find operation
For the example of how to use gomdise, see the test file for more details.