# Interface: Mirror

Defined in: [packages/core/src/storage/mirror.ts:69](https://github.com/leifriksheim/minca/blob/main/core/src/storage/mirror.ts#L69)

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-store"></a> `store` | `readonly` | [`BlobStore`](https://minca.dev/api/core/interfaces/BlobStore.md) | The blob store, and this store writer's id in it: where its files go too (spec 05 §16.6) | [packages/core/src/storage/mirror.ts:71](https://github.com/leifriksheim/minca/blob/main/core/src/storage/mirror.ts#L71) |
| <a id="property-writer"></a> `writer` | `readonly` | `string` | - | [packages/core/src/storage/mirror.ts:72](https://github.com/leifriksheim/minca/blob/main/core/src/storage/mirror.ts#L72) |

## Methods

### changed()

```ts
changed(): void;
```

Defined in: [packages/core/src/storage/mirror.ts:78](https://github.com/leifriksheim/minca/blob/main/core/src/storage/mirror.ts#L78)

Something changed here: flush soon

#### Returns

`void`

***

### close()

```ts
close(): Promise<void>;
```

Defined in: [packages/core/src/storage/mirror.ts:82](https://github.com/leifriksheim/minca/blob/main/core/src/storage/mirror.ts#L82)

Flushes, and stops the timer

#### Returns

`Promise`\<`void`\>

***

### compact()

```ts
compact(): Promise<void>;
```

Defined in: [packages/core/src/storage/mirror.ts:80](https://github.com/leifriksheim/minca/blob/main/core/src/storage/mirror.ts#L80)

Rewrites this writer's segments into fewer

#### Returns

`Promise`\<`void`\>

***

### flush()

```ts
flush(): Promise<void>;
```

Defined in: [packages/core/src/storage/mirror.ts:76](https://github.com/leifriksheim/minca/blob/main/core/src/storage/mirror.ts#L76)

Uploads what the store is missing, now

#### Returns

`Promise`\<`void`\>

***

### pull()

```ts
pull(): Promise<{
  added: number;
}>;
```

Defined in: [packages/core/src/storage/mirror.ts:74](https://github.com/leifriksheim/minca/blob/main/core/src/storage/mirror.ts#L74)

Takes in what others left in the store. How many versions were stored.

#### Returns

`Promise`\<\{
  `added`: `number`;
\}\>
