예제 #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())
}