func (s *cacheStore) Put(k string, v []byte, tags ...storage.Tag) error {
	if len(tags) > 0 {
		return errors.New("tag storage not implemented")
	}

	err := s.gc.SetWithExpire(k, v, s.exp)
	if err != nil {
		return fmt.Errorf("set to cache: %w", err)
	}

	s.logger.Debugf("save key %q into cache %q", k, s.name)

	return nil
}
// Put stores a new key-value pair with an expiration time set for the cacheStore instance.
Put stores a new key-value pair with an expiration time set for the cacheStore instance.
// Put stores a new key - value pair with an expiration time set for the cacheStore instance .
func (s *cacheStore) Put(k string, v []byte, tags ...storage.Tag) error {
	if len(tags) > 0 {
		return errors.New("tag storage not implemented")
	}
	err := s.gc.SetWithExpire(k, v, s.exp)
	if err != nil {
		return fmt.Errorf("set to cache: %w", err)
	}
	s.logger.Debugf("save key %q into cache %q", k, s.name)
	return nil
}
func ( s * cacheStore ) Put ( k string , v [ ] byte , tags ... storage . Tag ) error { if len ( tags ) > 0 { return errors . New ( " " ) } err := s . gc . SetWithExpire ( k , v , s . exp ) if err != nil { return fmt . Errorf ( " " , err ) } s . logger . Debugf ( " " , k , s . name ) return nil }
Put stores a new key-value pair with an expiration time set for the cacheStore instance.
Put stores a new key - value pair with an expiration time set for the cacheStore instance .