func (cch *store) isExpired(c item) bool {
	ttl := c.ttl
	if ttl == 0 {
		// fallback to the stores configured ttl
		ttl = cch.ttl
	}
	return c.insertedAt.Before(time.Now().Add(-1 * ttl))
}
// isExpired returns true if the given item is expired.
isExpired returns true if the given item is expired.
// isExpired returns true if the given item is expired .
func (cch *store) isExpired(c item) bool {
	ttl := c.ttl
	if ttl == 0 {
		ttl = cch.ttl
	}
	return c.insertedAt.Before(time.Now().Add(-1 * ttl))
}
func ( cch * store ) isExpired ( c item ) bool { ttl := c . ttl if ttl == 0 { ttl = cch . ttl } return c . insertedAt . Before ( time . Now ( ) . Add ( - 1 * ttl ) ) }
isExpired returns true if the given item is expired.
isExpired returns true if the given item is expired .
// fallback to the stores configured ttl