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