func (c *CommonCache) Set(key string, value interface{}, minutes int) {
	if value == nil {
		return
	}
	c.lock.Lock()
	defer c.lock.Unlock()
	c.data[key] = value
	if minutes != 0 {
		go time.AfterFunc(time.Duration(minutes)*time.Minute, func() { c.Forget(key) })
	}
}
// set cache value, if minutes is 0 - caching forever
set cache value, if minutes is 0 - caching forever
// set cache value if minutes is 0 - caching forever
func (c *CommonCache) Set(key string, value interface{}, minutes int) {
	if value == nil {
		return
	}
	c.lock.Lock()
	defer c.lock.Unlock()
	c.data[key] = value
	if minutes != 0 {
		go time.AfterFunc(time.Duration(minutes)*time.Minute, func() { c.Forget(key) })
	}
}
func ( c * CommonCache ) Set ( key string , value interface { } , minutes int ) { if value == nil { return } c . lock . Lock ( ) defer c . lock . Unlock ( ) c . data [ key ] = value if minutes != 0 { go time . AfterFunc ( time . Duration ( minutes ) * time . Minute , func ( ) { c . Forget ( key ) } ) } }
set cache value, if minutes is 0 - caching forever
set cache value if minutes is 0 - caching forever