Exemplo n.º 1
0
func PathOfKey(category, key string) string {
	md5 := toolkit.MakeMd5Str([]byte(key))
	return toolkit.PathJoin(
		category,
		md5[0:2],
		md5,
	)
}
Exemplo n.º 2
0
func (this *FileCache) FullPath(category, key string) string {
	return toolkit.PathJoin(
		this.path,
		PathOfKey(category, key),
	)
}