func NewResponder(exitChan chan bool, cdrSrv *CdrServer, stats StatsInterface, timeout, timeToLive time.Duration) *Responder { return &Responder{ ExitChan: exitChan, Stats: stats, Timeout: timeToLive, responseCache: cache2go.NewResponseCache(timeToLive), } }
func (rs *Responder) getCache() *cache2go.ResponseCache { if rs.responseCache == nil { rs.responseCache = cache2go.NewResponseCache(0) } return rs.responseCache }
func (self *CdrServer) getCache() *cache2go.ResponseCache { if self.responseCache == nil { self.responseCache = cache2go.NewResponseCache(0) } return self.responseCache }
func (rs *Responder) SetTimeToLive(timeToLive time.Duration, out *int) error { rs.responseCache = cache2go.NewResponseCache(timeToLive) return nil }
func (self *CdrServer) SetTimeToLive(timeToLive time.Duration, out *int) error { self.responseCache = cache2go.NewResponseCache(timeToLive) return nil }