Table of Contents

Interface IInMemoryTemporaryFileCache

Namespace
GroupeIsa.Neos.Shared.IO
Assembly
GroupeIsa.Neos.Shared.dll

Provides an in memory temporary file cache.

public interface IInMemoryTemporaryFileCache

Methods

GetAll()

Gets all entries in the cache.

IQueryable<InMemoryTemporaryFileCacheEntry> GetAll()

Returns

IQueryable<InMemoryTemporaryFileCacheEntry>

The entries.

TryAdd(BinaryFile, string?)

Tries to add a file in the storage.

Guid TryAdd(BinaryFile file, string? userId)

Parameters

file BinaryFile

The file.

userId string

The user id.

Returns

Guid

The file identifier if the file was added, null otherwise.

TryGet(Guid, out BinaryFile?)

Tries to get a file from the storage.

bool TryGet(Guid guid, out BinaryFile? file)

Parameters

guid Guid

The file identifier.

file BinaryFile

The found file or null.

Returns

bool

True if the file was found, false otherwise.

TryRemove(Guid)

Tries to remove a file from the storage.

bool TryRemove(Guid guid)

Parameters

guid Guid

The file identifier.

Returns

bool

True if the file was removed, false otherwise.