Documentation ¶
Overview ¶
Code generated by gotoc_cache. DO NOT EDIT. gotoc version: 0.0.3 source: samples/cache/user.cache.gtc
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitUserCache ¶
func InitUserCache(cache *cache.Cache, db UserDatabase, keyFunc UserKeyValueFunc)
func RemoveUser ¶
Types ¶
type User ¶
type User struct { // Id int64 `json:"id"` // Name string `json:"name"` // Phone string `json:"phone"` // Email string `json:"email"` }
User
type UserDatabase ¶
type UserKey ¶
type UserKey struct { // Id int64 `json:"id"` // Name string `json:"name"` // Email string `json:"email"` }
UserKey
type UserKeyValueFunc ¶
type UserKeyValueFunc func(*UserKey) interface{}
Click to show internal directories.
Click to hide internal directories.