Skip to content

feat: merge develop into main#13

Merged
teghoz merged 4 commits into
mainfrom
develop
Jun 3, 2026
Merged

feat: merge develop into main#13
teghoz merged 4 commits into
mainfrom
develop

Conversation

@teghoz

@teghoz teghoz commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Merges latest develop changes into main.

teghoz added 4 commits June 2, 2026 19:42
Introduces a standalone CacheWeave.Legacy project that brings
provider-agnostic caching to .NET Framework 4.8 without any
ASP.NET Core dependencies.

Included providers:
- Redis (StackExchange.Redis)
- InMemory (System.Runtime.Caching, in-box on net48)
- DynamoDB (AWSSDK.DynamoDBv2)
- SQLite (System.Data.SQLite.Core)
- NCache (Alachisoft.NCache.SDK)

Excluded (incompatible with net48):
- Memcached (EnyimMemcachedCore is ASP.NET Core only)
- FASTER KV (Microsoft.FASTER.Core v2 targets net6+)
- DistributedCache (IDistributedCache is ASP.NET Core only)
- All MVC/Razor Page/Minimal API filters

Core services ported:
- ICacheProvider / ICacheProviderInner abstractions
- ICacheWeaveService + CacheWeaveService (programmatic API)
- ICacheStampedeProtector + InProcessStampedeProtector
- ICacheSerializer + System.Text.Json and Newtonsoft.Json impls
- ICacheCompressor + GZipCacheCompressor
- CompressingCacheProvider decorator
- DisabledCacheProvider no-op
- ServiceCollectionExtensions DI wiring

Polyfill added for MaybeNullAttribute (internal in net48 BCL).
…gacy (net48)

Tests (tests/CacheWeave.Legacy.Tests/, targets net48):
- InMemoryCacheProvider: get/set/remove/expiry/prefix-not-supported
- DisabledCacheProvider: all ops are no-ops, singleton check
- GZipCacheCompressor: round-trip, large payload, empty string, JSON
- CompressingCacheProvider: compress-on-set, decompress-on-get, passthrough remove
- NewtonsoftJsonCacheSerializer: generic + typed round-trips
- SystemTextJsonCacheSerializer: generic + typed round-trips, camelCase check
- InProcessStampedeProtector: result, null, serialization, concurrency, exception
- CacheWeaveService: GetOrSetAsync hit/miss/expiry/null-factory, GetAsync,
  SetAsync, InvalidateAsync, InvalidateByPrefixAsync, GlobalKeyPrefix, no-double-prefix
- Uses FluentAssertions v6 (last version supporting net48), xunit, Moq

CI (ci.yml):
- Existing ubuntu-latest job now filters out CacheWeave.Legacy.Tests
- New windows-latest job builds and runs CacheWeave.Legacy + tests on net48

Publish (publish-nuget.yml):
- Moved from ubuntu-latest to windows-latest (required for net48 build/test)
- Added CacheWeave.Legacy to PROJECTS pack list
- Split test step: modern .NET (filtered) + net48 (explicit project)
- Converted shell scripts to PowerShell

README:
- Added CacheWeave.Legacy row to Features table
- Expanded Providers table with target framework column
- Added dedicated .NET Framework 4.8 section with install, register,
  use examples, and provider capability matrix
The solution-level build on ubuntu-latest fails because net48 is not
supported on Linux without Mono. Replace the solution build with an
explicit per-project build loop covering only the modern .NET projects,
and point the test step directly at CacheWeave.Tests.csproj.

The windows-latest job continues to build and test CacheWeave.Legacy
and CacheWeave.Legacy.Tests independently.
feat: add CacheWeave.Legacy for .NET Framework 4.8 support
@teghoz teghoz self-assigned this Jun 3, 2026
@teghoz teghoz merged commit b11a2d7 into main Jun 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant