mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-02-14 06:15:36 +08:00
使用缓存提升API身份认证性能(0.8ms->0.05ms)
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
package models
|
||||
|
||||
import "github.com/iwind/TeaGo/dbs"
|
||||
import (
|
||||
"github.com/iwind/TeaGo/dbs"
|
||||
"sync"
|
||||
)
|
||||
|
||||
var SharedCacheLocker = sync.RWMutex{}
|
||||
|
||||
// 处理JSON字节Slice
|
||||
func JSONBytes(data []byte) []byte {
|
||||
|
||||
Reference in New Issue
Block a user