func (c *Cache) All() []Param {
	c.Lock()
	defer c.Unlock()

	copy := make([]Param, 0, len(c.val))
	for _, val := range c.val {
		copy = append(copy, val)
	}

	return copy
}
// All provides a copy of the cached values
All provides a copy of the cached values
// All provides a copy of the cached values
func (c *Cache) All() []Param {
	c.Lock()
	defer c.Unlock()
	copy := make([]Param, 0, len(c.val))
	for _, val := range c.val {
		copy = append(copy, val)
	}
	return copy
}
func ( c * Cache ) All ( ) [ ] Param { c . Lock ( ) defer c . Unlock ( ) copy := make ( [ ] Param , 0 , len ( c . val ) ) for _ , val := range c . val { copy = append ( copy , val ) } return copy }
All provides a copy of the cached values
All provides a copy of the cached values