Documentation ¶
Index ¶
- func InitCache()
- type Adapter
- type SchemaCache
- func (s *SchemaCache) Clear()
- func (s *SchemaCache) GetAllClasses() []types.M
- func (s *SchemaCache) GetOneSchema(className string) types.M
- func (s *SchemaCache) Put(key string, value interface{})
- func (s *SchemaCache) SetAllClasses(schema []types.M)
- func (s *SchemaCache) SetOneSchema(className string, schema types.M)
- type SubCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SchemaCache ¶
type SchemaCache struct {
// contains filtered or unexported fields
}
SchemaCache ...
func NewSchemaCache ¶
func NewSchemaCache(ttl int, singleCache bool) *SchemaCache
NewSchemaCache ... singleCache 默认为 false
func (*SchemaCache) GetAllClasses ¶
func (s *SchemaCache) GetAllClasses() []types.M
GetAllClasses ...
func (*SchemaCache) GetOneSchema ¶
func (s *SchemaCache) GetOneSchema(className string) types.M
GetOneSchema ...
func (*SchemaCache) SetAllClasses ¶
func (s *SchemaCache) SetAllClasses(schema []types.M)
SetAllClasses ...
func (*SchemaCache) SetOneSchema ¶
func (s *SchemaCache) SetOneSchema(className string, schema types.M)
SetOneSchema ...
Click to show internal directories.
Click to hide internal directories.