mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-11 22:00:25 +08:00
改进WAF缓存性能
This commit is contained in:
7
internal/ttlcache/utils.go
Normal file
7
internal/ttlcache/utils.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package ttlcache
|
||||
|
||||
import "github.com/dchest/siphash"
|
||||
|
||||
func HashKey(key []byte) uint64 {
|
||||
return siphash.Hash(0, 0, key)
|
||||
}
|
||||
Reference in New Issue
Block a user