SetExpireDuration sets the interval at which things expire If it is less than or equal to 0 then things are never cached
(d time.Duration)
| 34 | // |
| 35 | // If it is less than or equal to 0 then things are never cached |
| 36 | func (c *Cache) SetExpireDuration(d time.Duration) *Cache { |
| 37 | c.expireDuration = d |
| 38 | return c |
| 39 | } |
| 40 | |
| 41 | // returns true if we aren't to cache anything |
| 42 | func (c *Cache) noCache() bool { |
no outgoing calls