示例#1
0
文件: fs.go 项目: rainycape/gondola
func (f *FileSystemDriver) keyPath(key string) string {
	fileKey := hashutil.Md5(key)
	return filepath.Join(f.Root, fileKey[:2], fileKey[2:4], fileKey[4:])
}
示例#2
0
func (m *SimpleMediator) Key(ctx *app.Context) string {
	return hashutil.Md5(ctx.R.Method + ctx.R.URL.String())
}