package cblocks
import (
"html/template"
)
func (this *CacheBlocks) GetBlock4(host, url string) (template.HTML, bool) {
if mapCache, ok := this.cacheBlocks[host]; ok {
if data, ok := mapCache.CacheBlock4[url]; ok {
return data, ok
}
}
return template.HTML(""), false
}
func (this *CacheBlocks) SetBlock4(host, url string, data template.HTML) {
if _, ok := this.cacheBlocks[host]; !ok {
this.cacheBlocks[host] = cache{}
}
this.cacheBlocks[host].CacheBlock4[url] = data
}