feat: add store cache

This commit is contained in:
Steven
2023-06-21 08:46:52 +08:00
parent 01ed504735
commit 0ca88fac00
4 changed files with 35 additions and 8 deletions

View File

@ -12,8 +12,9 @@ type Store struct {
db *sql.DB
profile *profile.Profile
userCache sync.Map // map[int]*userRaw
workspaceCache sync.Map // map[int]*workspaceRaw
workspaceSettingCache sync.Map // map[string]*WorkspaceSetting
userCache sync.Map // map[int]*User
shortcutCache sync.Map // map[int]*Shortcut
}
// New creates a new instance of Store.