func (c *BaseCache) GetBool(k cache.Key) (bool, error) {
	value, err := c.Get(k)
	if err != nil {
		return false, err
	}

	v, ok := value.(bool)
	if !ok {
		return false, fmt.Errorf("not a string value. key=%s, value=%v(%T)", k.Key(), value, value)
	}
	return v, nil
}
// GetBool returns a bool representation of the value for the given key.
// will error if the type is not a bool.
GetBool returns a bool representation of the value for the given key.
will error if the type is not a bool.
// GetBool returns a bool representation of the value for the given key . // will error if the type is not a bool .
func (c *BaseCache) GetBool(k cache.Key) (bool, error) {
	value, err := c.Get(k)
	if err != nil {
		return false, err
	}
	v, ok := value.(bool)
	if !ok {
		return false, fmt.Errorf("not a string value. key=%s, value=%v(%T)", k.Key(), value, value)
	}
	return v, nil
}
func ( c * BaseCache ) GetBool ( k cache . Key ) ( bool , error ) { value , err := c . Get ( k ) if err != nil { return false , err } v , ok := value . ( bool ) if ! ok { return false , fmt . Errorf ( " " , k . Key ( ) , value , value ) } return v , nil }
GetBool returns a bool representation of the value for the given key.
GetBool returns a bool representation of the value for the given key .