Filter by title

BLOB Storing Memory Provider

Memory Storage Provider is used to store BLOBs in the memory. This is mainly used for unit testing purposes.

Read the BLOB Storing document to understand how to use the BLOB storing system. This document only covers how to configure containers to use the memory.

Installation

Use the ABP CLI to add Volo.Abp.BlobStoring.Memory NuGet package to your project:

  • Install the ABP CLI if you haven't installed before.
  • Open a command line (terminal) in the directory of the .csproj file you want to add the Volo.Abp.BlobStoring.Memory package.
  • Run abp add-package Volo.Abp.BlobStoring.Memory command.

If you want to do it manually, install the Volo.Abp.BlobStoring.Memory NuGet package to your project and add [DependsOn(typeof(AbpBlobStoringMemoryModule))] to the ABP module class inside your project.

Configuration

Configuration is done in the ConfigureServices method of your module class, as explained in the BLOB Storing document.

Example: Configure to use the Memory storage provider by default

Configure<AbpBlobStoringOptions>(options =>
{
    options.Containers.ConfigureDefault(container =>
    {
        container.UseMemory();
    });
});

UseMemory extension method is used to set the Memory Provider for a container.

See the BLOB Storing document to learn how to configure this provider for a specific container.

Contributors


Last updated: September 12, 2025 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

ABP Community Talks
Beyond WordPress: A Developer-Friendly CMS for .NET
28 Aug, 17:00
Online
Watch the Event
ABP Live Webinar
Webinar Calendar Webinar Calendar
Discover
ABP Platform
Register Now
Oct 01
Wednesday,
17:00 UTC
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book