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