You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
444 B

---
layout: default
permalink: /adapter/memory/
title: Memory Adapter
---
# Memory Adapter
This adapter keeps the filesystem completely in memory. This is useful when you need a filesystem, but don't want it persisted.
## Installation
~~~ bash
composer require league/flysystem-memory
~~~
## Usage
~~~ php
use League\Flysystem\Filesystem;
use League\Flysystem\Memory\MemoryAdapter;
$filesystem = new Filesystem(new MemoryAdapter());
~~~