Skip to content

Commit

Permalink
Merge pull request #46 from Encamina/@rliberoff/improvements_on_ephem…
Browse files Browse the repository at this point in the history
…aral_memory_handler

Improvements on ephemeral memory handler.
  • Loading branch information
rliberoff authored Jan 18, 2024
2 parents 7f2c962 + 0ec1b1c commit 0412797
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Also, any bug fix must start with the prefix �Bug fix:� followed by the desc

Previous classification is not required if changes are simple or all belong to the same category.

## [8.1.2]

### Minor Changes
- Properties `CollectionNamePostfix` and `CollectionNamePrefix` from `MemoryStoreHandlerBase` are now `virtual` instead of `abstract`.
- In `EphemeralMemoryStoreHandler`, property `CollectionNamePrefix` has the value `ephemeral-` fixed.

## [8.1.1]

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>8.1.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionPrefix>8.1.2</VersionPrefix>
<VersionSuffix>preview-1</VersionSuffix>
</PropertyGroup>

<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ protected MemoryStoreHandlerBase(IMemoryStore memoryStore)
}

/// <inheritdoc/>
public abstract string CollectionNamePostfix { get; init; }
public virtual string CollectionNamePostfix { get; init; }

/// <inheritdoc/>
public abstract string CollectionNamePrefix { get; init; }
public virtual string CollectionNamePrefix { get; init; }

/// <summary>
/// Gets the current collection of memory stores.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ public EphemeralMemoryStoreHandler(IMemoryStore memoryStore, IOptionsMonitor<Eph
Task.Run(() => RemoveOutdatedCollectionsAsync());
}

/// <inheritdoc />
public override string CollectionNamePostfix { get; init; }

/// <inheritdoc />
public override string CollectionNamePrefix { get; init; }
/// <inheritdoc/>
public override string CollectionNamePrefix => @"ephemeral-";

private async Task RemoveOutdatedCollectionsAsync(CancellationToken cancellationToken = default)
{
Expand Down

0 comments on commit 0412797

Please sign in to comment.