func (s *cacheStore) Get(k string) ([]byte, error) {
	v, err := s.gc.Get(k)
	if err != nil {
		if errors.Is(err, gcache.KeyNotFoundError) {
			s.logger.Debugf("no key %q in cache %q", k, s.name)

			return nil, storage.ErrDataNotFound
		}

		return nil, fmt.Errorf("get from cache: %w", err)
	}

	s.logger.Debugf("get key %q from cache %q", k, s.name)

	return v.([]byte), nil
}
// Get fetches value from the cache by key.
Get fetches value from the cache by key.
// Get fetches value from the cache by key .
func (s *cacheStore) Get(k string) ([]byte, error) {
	v, err := s.gc.Get(k)
	if err != nil {
		if errors.Is(err, gcache.KeyNotFoundError) {
			s.logger.Debugf("no key %q in cache %q", k, s.name)
			return nil, storage.ErrDataNotFound
		}
		return nil, fmt.Errorf("get from cache: %w", err)
	}
	s.logger.Debugf("get key %q from cache %q", k, s.name)
	return v.([]byte), nil
}
func ( s * cacheStore ) Get ( k string ) ( [ ] byte , error ) { v , err := s . gc . Get ( k ) if err != nil { if errors . Is ( err , gcache . KeyNotFoundError ) { s . logger . Debugf ( " " , k , s . name ) return nil , storage . ErrDataNotFound } return nil , fmt . Errorf ( " " , err ) } s . logger . Debugf ( " " , k , s . name ) return v . ( [ ] byte ) , nil }
Get fetches value from the cache by key.
Get fetches value from the cache by key .