feat: 添加 database - cache(redis)

This commit is contained in:
zhaoyupeng committed 2025-06-18 18:44:45 +08:00
1 parent 7dd48c0c50
commit edce9fe73f
8 files changed
+475 -9

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
package tool
import "unsafe"
func BytesToString(b []byte) string {
return unsafe.String(unsafe.SliceData(b), len(b))
}
func StringToBytes(s string) []byte {
return unsafe.Slice(unsafe.StringData(s), len(s))
}