Skip to content

Commit 8049c14

Browse files
authored
allow shutting down jwk cache (#1457)
1 parent 7cbfb96 commit 8049c14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jwk/cache.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ func (c *Cache) Unregister(ctx context.Context, u string) error {
223223
return c.ctrl.Remove(ctx, u)
224224
}
225225

226+
func (c *Cache) Shutdown(ctx context.Context) error {
227+
return c.ctrl.ShutdownContext(ctx)
228+
}
229+
226230
// CachedSet is a thin shim over jwk.Cache that allows the user to cloak
227231
// jwk.Cache as if it's a `jwk.Set`. Behind the scenes, the `jwk.Set` is
228232
// retrieved from the `jwk.Cache` for every operation.

0 commit comments

Comments
 (0)