Skip to content

Commit

Permalink
fix: ICacheContext Scoped (#596)
Browse files Browse the repository at this point in the history
* ⚡ refactor: When HttpContext is empty, use ClientCredentials

* ⚡ refactor: Cache Client Credentials Token

* chore: from main

* style

* fix: ICacheContext Scoped
  • Loading branch information
wzh425 authored Sep 13, 2024
1 parent 7bff519 commit 82f96f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/masa-service/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
containers:
- name: wget
image: busybox
image: registry.cn-hangzhou.aliyuncs.com/masastack/busybox:latest
command: ['wget']
args: ['{{ include "masa-service.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public static class ServiceCollectionExtensions
public static IServiceCollection AddCache(this IServiceCollection services)
{
services.AddMultilevelCache(options => options.UseStackExchangeRedisCache());
services.AddSingleton<ICacheContext, CacheContext>();
services.AddScoped<ICacheContext, CacheContext>();
return services;
}
}

0 comments on commit 82f96f1

Please sign in to comment.