reduced overhead of mapping models to ledis, I don't think we will need nested structs

This commit is contained in:
Deluan
2016-02-28 02:07:52 -05:00
parent ae5206612c
commit 08f035d99b
3 changed files with 37 additions and 12 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ type BaseRepository struct {
func (r *BaseRepository) saveOrUpdate(id string, rec interface{}) error {
return hmset(r.key + "_id_" + id, rec)
return saveStruct(r.key + "_id_" + id, rec)
}
func (r *BaseRepository) Dump() {