---
title: Store
summary: Store is a read-only representation of a config store.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/configstore/struct.Store/
---

**Kind:** Struct  
**Module:** [configstore](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/configstore/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L36

```go
type Store struct {
	// contains filtered or unexported fields
}
```

Store is a read-only representation of a config store.

## Methods

### Get

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L113

```go
func (s *Store) Get(key string) (string, error)
```

Get returns the value in the config store with the given key, if it exists.

**Parameters**

- `key`: `string`

**Returns**

`(string, error)`

### GetBytes

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L90

```go
func (s *Store) GetBytes(key string) ([]byte, error)
```

GetBytes returns the value in the config store for the given key, if it exists, as a byte slice.

**Parameters**

- `key`: `string`

**Returns**

`([]byte, error)`

### Has

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L66

```go
func (s *Store) Has(key string) (bool, error)
```

Has returns true if the key exists in the config store, without allocating
space to read a value.

**Parameters**

- `key`: `string`

**Returns**

`(bool, error)`
